@php use Illuminate\Support\Str; @endphp {{ Str::title(str_replace('_', ' ', $document->type)) }} - {{ $document->document_number }}
@if(isset($isReprint) && $isReprint) COPY - {{ Str::title(str_replace('_', ' ', $document->type)) }} @else {{ Str::title(str_replace('_', ' ', $document->type)) }} @endif
Company Information
@if($company && $company->logo_path) Company Logo @endif
Name: {{ $company->name ?? 'Melsoft Zim Pvt Ltd' }}
Address: {{ $company->address ?? 'Harare, Zimbabwe' }}
Phone: {{ $company->phone ?? '+263 242 700000' }}
Email: {{ $company->email ?? 'info@melsoft.co.zw' }}
VAT No: {{ $company->vat_no ?? 'N/A' }}
TIN No: {{ $company->tin_no ?? 'N/A' }}
Currency: {{ $document->currency_code }}
Supplier Information
Name: {{ $document->supplier->supplier_account ?? '—' }}
Address: {{ $document->supplier->address ?? '—' }}
Email: {{ $document->supplier->email ?? '—' }}
Phone: {{ $document->supplier->contact_1 ?? '—' }}
Contact Person: {{ $document->contact_person }}
City: {{ $document->supplier->city ?? '—' }}
Province: {{ $document->supplier->province ?? '—' }}
VAT: {{ $document->supplier->vat ?? 'N/A' }}
TIN: {{ $document->supplier->tin ?? 'N/A' }}
Document #: {{ $document->document_number }}
Document Date: {{ $document->document_date->format('d M Y') }}
@if($document->delivery_date)
Delivery Date: {{ $document->delivery_date->format('d M Y') }}
@endif @if($document->order_number)
Order #: {{ $document->order_number }}
@endif
@foreach($document->lines as $line) @endforeach
HS Code Code Description Additional Description Qty UOM Description Price (incl) Disc % Tax Total (incl)
{{ $line->hs_code ?? '—' }} @if($line->module === 'GL') {{ optional($line->account)->code ?? '—' }} @else {{ optional($line->item)->code ?? '—' }} @endif @if($line->module === 'GL') {{ optional($line->account)->account_name ?? '—' }} @else {{ optional($line->item)->description1 ?? '—' }} @endif {{ $line->description ?? '—' }} {{ $line->confirmed_quantity }} {{ optional($line->uom)->description ?? '—' }} {{ number_format($line->price, 2) }} {{ number_format($line->discount_percent, 2) }}% {{ number_format($line->line_tax, 2) }} {{ number_format($line->line_total, 2) }}
Received by: _________________________________________
Date: _________________________________________________
Signed: ________________________________________________
Exclusive Total: {{ optional($document->currency)->symbol ?? $document->currency_code }} {{ number_format($document->exclusive_total, 2) }}
Tax: {{ optional($document->currency)->symbol ?? $document->currency_code }} {{ number_format($document->tax_amount, 2) }}
Discount: {{ optional($document->currency)->symbol ?? $document->currency_code }} {{ number_format($document->discount_total, 2) }}
Inclusive Total: {{ optional($document->currency)->symbol ?? $document->currency_code }} {{ number_format($document->inclusive_total, 2) }}

Terms & Conditions
{{ $document->notes ?? 'No terms provided' }}
Sales Representative: ________________________________________
Banking Details
Bank Name: {{ $company->bank_name ?? 'Standard Chartered Bank Zimbabwe' }}
Account Name: {{ $company->account_name ?? '' }}
Account Number: {{ $company->account_number ?? '' }}
Branch: {{ $company->branch_name ?? '' }}