@if(isset($all_settings) && $all_settings)

{{ $all_settings->company_name ?? 'Your Company, Inc.' }}

@if($all_settings->address)

Address: {{ $all_settings->address }}

@endif @if($all_settings->number)

Phone: {{ $all_settings->number }}

@endif @if($all_settings->company_email)

Email: {{ $all_settings->company_email }}

@endif @if($all_settings->website)

Website: {{ $all_settings->website }}

@endif @if($all_settings->company_registration_number)

Registration: {{ $all_settings->company_registration_number }}

@endif @else

Your Company, Inc.

Company Address

Phone & Email

@endif

INVOICE

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

Date: {{ \Carbon\Carbon::parse($sale->sale_date ?? now())->format('M d, Y') }}

Time: {{ \Carbon\Carbon::parse($sale->sale_date ?? now())->format('h:i A') }}

Bill To:

{{ $sale->customer_name ?? 'Walk-in Customer' }}

@if(isset($sale->customer)) @if($sale->customer->phone)

Phone: {{ $sale->customer->phone }}

@endif @if($sale->customer->email)

Email: {{ $sale->customer->email }}

@endif @if($sale->customer->address)

Address: {{ $sale->customer->address }}

@endif @endif
Description Unit Price Quantity Total
{{ $sale->product->brand ?? 'Product' }} - {{ $sale->product->type ?? 'Item' }} {{ ($all_settings->currency ?? env('APP_CURRENCY', '$')) . number_format($sale->sell_price, 2) }} {{ $sale->sold_quantity ?? 1 }} {{ ($all_settings->currency ?? env('APP_CURRENCY', '$')) . number_format($sale->sell_price * ($sale->sold_quantity ?? 1), 2) }}

Total Amount: {{ ($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)

Visit us online: {{ $all_settings->website }}

@endif