@if($settings['show_logo'] && !empty($settings['shop_logo']))@endif

{{ $settings['shop_name'] }}

{{ $settings['invoice_header'] }}

{{ $settings['address'] }}

{{ $settings['phone'] }} {{ $settings['whatsapp'] }}

@if($settings['show_qr'] && $qr)@endif
@if($settings['show_barcode'] && $barcode)@endif
{{ __('app.invoice') }}: {{ $sale->invoice_no }}{{ __('app.gregorian_date') }}: {{ $sale->sale_date?->format('Y-m-d') }}{{ __('app.shamsi_date') }}: {{ $sale->sale_date_shamsi ?: '-' }}{{ __('app.customer') }}: {{ $sale->walk_in_customer_name ?: ($sale->customer->name ?? '-') }}{{ __('app.phone') }}: {{ $sale->walk_in_customer_phone ?: ($sale->customer->phone ?? '-') }}
@foreach($sale->items as $i=>$item)@endforeach
#{{ __('app.mobile') }}IMEI{{ __('app.price') }}
{{ $i+1 }}{{ $item->mobile?->title() }}{{ $item->mobile->imei_1 ?? '-' }}{{ number_format($item->total,2) }}
{{ __('app.subtotal') }}{{ number_format($sale->subtotal,2) }} {{ $sale->currency }}
{{ __('app.discount') }}{{ number_format($sale->discount,2) }}
{{ __('app.total') }}{{ number_format($sale->total,2) }}
{{ __('app.paid') }}{{ number_format($sale->paid,2) }}
{{ __('app.due') }}{{ number_format($sale->due,2) }}
@if($settings['invoice_terms'])

{{ __('app.invoice_terms') }}: {{ $settings['invoice_terms'] }}

@endif
{{ __('app.customer_signature') }}{{ __('app.shop_signature') }}