@php $settings = new App\Models\MasterSetting(); $site = $settings->siteData(); $invoice = App\Models\Invoice::where('id',$id)->first(); $branch = \App\Models\User::find($invoice->created_by); if(Auth::user()->user_type==2) { $invoice = \App\Models\Invoice::where('id',$id)->first(); } /* if the user is branch */ if(Auth::user()->user_type==3) { $nvoice = \App\Models\Invoice::where('id',$id)->where('created_by',Auth::user()->id)->first(); } if(!$invoice){ abort(404); } @endphp

Tax Invoice

{{ isset($site['company_name']) && !empty($site['company_name']) ? $site['company_name'] : '' }}

{{getCompanyTaxRegistration()}}

@if(Auth::user()->user_type != 2)

{{ $branch->address ?? '' }},

@if ($branch->phone)

{{ getCountryCode() }} {{ $branch->phone ?? '' }}

@endif @else @if (isset($site['company_mobile']) && !empty($site['company_mobile']))

{{ getCountryCode() }} {{ isset($site['company_mobile']) ? $site['company_mobile'] : ''}}

@endif @endif
# {{ $invoice->invoice_number }}

Date : {{ \Carbon\Carbon::parse($invoice->date)->format('d/m/Y g:i A') }}

{{__('main.file_no')}} : {{ $invoice->customer_file_number }}

Invoice To

{{$invoice->customer_name}}

{{$invoice->customer_address}} {{ getCountryCode() }} {{$invoice->customer_phone}}


@php $qty = 0; @endphp @foreach ($invoice->invoiceProductDetails as $row) @php $qty = $qty + $row->product_quantity; @endphp @endforeach
# {{__('print.item')}} {{__('main.rate')}} {{__('main.qty')}} {{__('main.tax')}} {{__('main.tax_amount')}} {{__('main.total')}}
{{$loop->index+1}}
{{ $row->item_name }}
{{ getFormattedCurrency($row->rate) }}
{{ $row->quantity }} @if ($row->type == 2) {{ getUnitType($row->unit_type ?? '') }} @endif
{{$invoice->tax_percentage }} %
{{ getFormattedCurrency($row->tax_amount) }}
{{ getFormattedCurrency($row->total, 2) }}
Total
{{ getFormattedCurrency($invoice->tax_amount) }}
{{ getFormattedCurrency($invoice->taxable_amount) }}

{{ isset($site['default_thanks_message']) && !empty($site['default_thanks_message']) ? $site['default_thanks_message'] : 'Thank You for Doing business with us' }} !

@php $paid = \App\Models\InvoicePayment::where('invoice_id', $invoice->id)->sum('paid_amount'); @endphp
Discount {{ getFormattedCurrency($invoice->discount) }}
Taxable Amount {{ getFormattedCurrency($invoice->taxable_amount) }}
Total {{isset($site['default_tax_name']) ? $site['default_tax_name'] : 'GST'}} ({{ $invoice->tax_percentage }}%) {{ getFormattedCurrency($invoice->tax_amount) }}
Total {{ getFormattedCurrency($invoice->total) }}
Advance {{ getFormattedCurrency($paid) }}
Balance {{ getFormattedCurrency($invoice->total - $paid) }}

For {{ isset($site['company_name']) && !empty($site['company_name']) ? $site['company_name'] : '' }}




Authorized Signatory






Powered by {{ getApplicationName() }}