@extends('layouts.app')
@section('title', __('app.invoice').' '.$sale->invoice_no)
@section('content')
@if(!empty($pdf_missing))
@if($settings['show_logo'] && !empty($settings['shop_logo']))
 }})
@endif
{{ $settings['shop_name'] }}
@if($settings['invoice_header'])@endif
{{ $settings['address'] }}
{{ $settings['phone'] }} {{ $settings['whatsapp'] ? ' | WhatsApp: '.$settings['whatsapp'] : '' }}
@if($settings['email'])
{{ $settings['email'] }}
@endif
@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 ?? '-') }}{{ __('app.tazkira') }}: {{ $sale->customer->tazkira ?? '-' }}{{ __('app.currency') }}: {{ $sale->currency ?? $settings['currency'] }}
| # | {{ __('app.mobile') }} | IMEI | {{ __('app.condition') }} | {{ __('app.price') }} |
@foreach($sale->items as $i=>$item)| {{ $i+1 }} | {{ $item->mobile?->title() }} | {{ $item->mobile->imei_1 ?? '-' }} | {{ $item->mobile ? __('app.'.$item->mobile->condition_status) : '-' }} | {{ number_format($item->total,2) }} |
@endforeach
{{ __('app.subtotal') }}{{ number_format($sale->subtotal,2) }} {{ $sale->currency ?? $settings['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') }}
@endsection