@php $invoice = \App\Support\InvoiceSettings::from($cachedSettings); $invoiceNumber = \App\Support\InvoiceSettings::number($invoice, $sale->id); @endphp
{{ $invoice['company_name'] }}
@if ($invoice['subtitle']){{ $invoice['subtitle'] }}
@endif @if ($invoice['show_address'] && $invoice['address']){{ $invoice['address'] }}
@endif @if ($invoice['phone']){{ __('dashboard.phone') }}: {{ $invoice['phone'] }}
@endif @if ($invoice['email']){{ __('dashboard.email') }}: {{ $invoice['email'] }}
@endif @if ($invoice['show_tax_number'] && $invoice['tax_number']){{ __('dashboard.tax_number') }}: {{ $invoice['tax_number'] }}
@endif{{ __('dashboard.invoice') }} #{{ $invoiceNumber }}
{{ __('dashboard.date') }}: {{ $sale->created_at->format('Y-m-d H:i:s') }}
@if ($sale->customer){{ __('dashboard.customer') }}: {{ $sale->customer->name }}
@if ($sale->customer->address){{ __('dashboard.address') }}: {{ $sale->customer->address }}
@endif @if ($sale->customer->governorate){{ __('dashboard.governorate') }}: {{ $sale->customer->governorate }}
@endif @endif{{ __('dashboard.payment_method') }}: {{ __("dashboard.payment_method_{$sale->payment_method}") }}
{{ __('dashboard.payment_status') }}: {{ __("dashboard.payment_status_{$sale->payment_status}") }}
| {{ __('dashboard.product') }} | {{ __('dashboard.qty') }} | {{ __('dashboard.price') }} | {{ __('dashboard.total') }} |
|---|---|---|---|
| {{ $product->product->name }} | {{ $product->quantity }} | {{ $product->price }} | {{ $product->final_line_price }} |
{{ __('dashboard.products_total_before_discount') }}: {{ $sale->products_total_before_discount }}
{{ __('dashboard.products_total_after_discount') }}: {{ $sale->products_total_after_discount }}
@if ($sale->discount > 0){{ __('dashboard.discount') }}: {{ $sale->discount }}
@endif @if ($sale->total_taxes > 0){{ __('dashboard.total_taxes') }}: {{ $sale->total_taxes }}
@endif @if ($sale->total_additional_expenses > 0){{ __('dashboard.total_additional_expenses') }}: {{ $sale->total_additional_expenses }}
@endif @if ($sale->shipping_cost > 0){{ __('dashboard.shipping_cost') }}: {{ $sale->shipping_cost }}
@endif{{ __('dashboard.final_total') }}: {{ $sale->final_total }}
@if ($invoice['terms']){{ $invoice['terms'] }}
@endif @if ($invoice['footer']){{ $invoice['footer'] }}
@endif