{{ config('app.name') }}
|
{{ __('Invoice') }}: {{ $sale->invoice_number }}
{{ __('Created') }}: {{ $sale->created_at->format('Y-m-d H:i') }}
|
|
|
{{ __('Seller') }}: {{ $sale->user->name }}
|
{{ __('Payment Method') }}: {{ strtoupper($sale->payment_method) }}
|
|
| {{ __('Product') }} |
{{ __('Total') }} |
@foreach($sale->items as $item)
{{ App::getLocale() == 'ar' ? ($item->product->name_ar ?: $item->product->name_en) : $item->product->name_en }}
{{ $item->quantity }} x {{ number_format($item->unit_price, 2) }}
|
{{ number_format($item->total, 2) }} |
@endforeach
|
{{ __('Total') }}: ${{ number_format($sale->total, 2) }} |
|
{{ __('Paid Amount') }}: ${{ number_format($sale->paid_amount, 2) }} |
|
{{ __('Change') }}: ${{ number_format($sale->change_amount, 2) }} |