@if(isset($all_settings) && $all_settings)
{{ $all_settings->company_name ?? 'POS System' }}
@if($all_settings->address)

{{ $all_settings->address }}

@endif @if($all_settings->number)

Tel: {{ $all_settings->number }}

@endif @if($all_settings->company_email)

{{ $all_settings->company_email }}

@endif @if($all_settings->company_registration_number)

Reg: {{ $all_settings->company_registration_number }}

@endif @else
Your Company, Inc.

Company Address

Phone Number

@endif

Sales Invoice

Date: {{ \Carbon\Carbon::parse($sale->sale_date)->format('Y-m-d H:i') }}

Customer: {{ $sale->customer_name }}

Invoice: #{{ $sale->id ?? 'INV-001' }}

Item Qty Price
{{ $sale->product->brand ?? 'Product' }} {{ $sale->sold_quantity ?? 1 }} {{ ($all_settings->currency ?? env('APP_CURRENCY', '$')) . number_format($sale->sell_price, 2) }}

Total: {{ ($all_settings->currency ?? env('APP_CURRENCY', '$')) . number_format($sale->sell_price * ($sale->sold_quantity ?? 1), 2) }}

Thank you for your business!

@if(isset($all_settings) && $all_settings->website)

{{ $all_settings->website }}

@endif