@extends('layouts.horizontal', ['title' => 'Invoice', 'topbarTitle' => 'View Invoice', 'nonav' => true]) @section('css') @endsection @section('content')
{!! $business->business_address !!}
Phone: {{ $business->business_phone1 }}
{{$franchise->franchise_name}}
NTN {{$franchise->franchise_ntn ?? ''}}
@if (!empty($franchise->franchise_email))
{{$franchise->franchise_email}}
@endif @if (!empty($franchise->franchise_office_phone))
{{$franchise->franchise_office_phone}}
@endif {{$franchise->franchise_address ?? '' }}
invoice_status

Invoice: #{{ $order_detail->invoice_number }}

Order: #{{ $order[0]['franchise_order_id'] }}
Invoice Date: {{$order[0]['formatted_invoice_date']}}
Due Date: {{$order[0]['due_date']}}
Agent: {{$order_detail->created_by}}
# Item Unit Price Qty. Total Price Total Disc Total Price Tax Rate Value Inclusive of Tax
{{number_format($total_qty,2)}} {{number_format($subtotal,2)}} {{number_format($totalproduct_discount,2)}} {{number_format($total_price_bf_tax,2)}} {{number_format($total_price_with_tax,2)}}
@if (isset($order[0]['invoice_discount']) && $order[0]['invoice_discount'] > 0) @endif @if (isset($order[0]['invoice_other_charges']) && $order[0]['invoice_other_charges'] > 0) @endif
SubTotal {{config('constants.CURRENCY')}} {{number_format($subtotal,2)}}
Product Discount {{config('constants.CURRENCY')}} {{number_format($totalproduct_discount,2)}}
Invoice Discount {{config('constants.CURRENCY')}} {{number_format($order[0]['invoice_discount'] ?? 0 ,2)}}
Other Charges {{config('constants.CURRENCY')}} {{number_format($order[0]['invoice_other_charges'] ?? 0 ,2)}}
Amount Exclusive of Taxes {{config('constants.CURRENCY')}} {{number_format( ((($order[0]['invoice_other_charges'] ?? 0)+$total_price_bf_tax) - ($order[0]['invoice_discount'] ?? 0) ) ,2)}}
Amount of Product Sales Tax {{config('constants.CURRENCY')}} {{number_format($total_tax ,2)}}
Amount of Sales Taxes {{number_format($order[0]['invoice_sales_tax_perc'] ?? 0 ,2)}}% {{config('constants.CURRENCY')}} {{number_format($order[0]['invoice_sales_tax'] ?? 0 ,2)}}
Amount Inclusive of Taxes {{config('constants.CURRENCY')}} {{number_format($order[0]['invoice_total_receivable'] ?? 0 ,2)}}
@if($business->invoice_terms == 'Yes')

Terms : {!! $business->payment_terms !!}

@endif
@if (isset($order[0]['franchise_order_id']) && $order[0]['franchise_order_id'] > 0 && $order[0]['order_status'] =='Invoiced') @endif Print
@endsection @section('scripts') @endsection