@use('App\Services\Date') @extends('sales::layouts.exporting.print.master-local-style') @section('title', __('sales::invoices.show_invoice')) @section('custom-pdf') @include('sales::invoices.partials.zatca-support') @endsection @section('koolreport') @php $color = ($formDesign->color ?? getenv('DEFAULT_INVOICE_COLOR')); $formDesign->discount = 1; $formDesign->tax_amount = 1; $formDesign->customer_tax_number = 1; @endphp @php app()->getLocale() == 'en' ? app()->setLocale('en') : app()->setLocale('ar'); @endphp
getLocale() == 'en') style="direction:ltr;" @else style="direction:rtl;" @endif> @if (in_array($invoice->zatca_reported, Modules\Sales\Enums\Zatca\ReportInvoiceEnum::NOT_REPORTED)) @endif
{{__('sales::invoices.serial_number')}} :
{{isset($invoice)? $invoice->reference : $formDesign->reference}}
{{__('sales::invoices.bill_date')}} :
{{ isset($invoice)? Date::format($invoice->date, 'date') : ".................."}}
@if($formDesign->payment_account)
{{__('sales::invoices.Payment Account')}}:
{{isset($invoice)? ($invoice->paymentAccount->name ?? '') : ".................."}}
@endif @if($formDesign->payment_term)
{{__('sales::invoices.payment_term')}}:
{{isset($invoice)? ($invoice->paymentTerm ? $invoice->paymentTerm->name : __('sales::invoices.cash')) : ".................."}}
@endif @if($formDesign->cost_center)
{{__('products::cost_center.Cost Center')}} :
@if(isset($invoice))
{{$costCenter?$costCenter['code'] . ' - ' . $costCenter['name_' . app()->getLocale()]: __('products::cost_center.main center') }}
@else
..................
@endif
@endif
@isset($invoice)
@endisset

{{__('sales::invoices.supplier_info')}} :
{{__('sales::invoices.supplier_name')}}:
{{app()->getLocale() == 'en' ? $settings->name_en : $settings->name_ar}}
{{__('sales::invoices.supplier_address')}}:
{{$settings->address_number. ' ' .$settings->address}}
@if($settings->taxable && $settings->tax_id_number)
{{__('sales::invoices.supplier_tax_number')}}:
{{$settings->tax_id_number}}
@endif
{{__('sales::invoices.supplier_commercial_number')}}:
{{$settings->commercial_number}}
{{__('sales::invoices.buyer_info')}}:
{{__('sales::invoices.buyer_name')}}:
{{$buyer->name}}
{{__('sales::invoices.buyer_address')}}:
{{$buyer->address_number. ' ' .$buyer->street.', '.$buyer->country}}
{{__('sales::invoices.buyer_commercial_number')}}:
{{$buyer->commercial_number}}
{{__('sales::invoices.buyer_tax_number')}}:
{{$buyer->tax_number}}