Sales Analysis Report
Company Information
@if($company && $company->logo_path) Company Logo @endif
Name: {{ $company->name ?? 'Company Name' }}
Address: {{ $company->address ?? 'Company Address' }}
Phone: {{ $company->phone ?? 'Company Phone' }}
Email: {{ $company->email ?? 'Company Email' }}
@if($company && $company->vat_no)
VAT No: {{ $company->vat_no }}
@endif @if($company && $company->tin_no)
TIN No: {{ $company->tin_no }}
@endif
Report Information
Period: {{ $dateFrom }} to {{ $dateTo }}
Report Date: {{ date('d M Y') }}
@foreach($salesData as $data) @endforeach
Date Reference Amount Cost Gross Profit
{{ $data['date'] }} {{ $data['reference'] }} {{ number_format($data['amount'], 2) }} {{ number_format($data['cost'], 2) }} {{ number_format($data['gross_profit'], 2) }}
Grand Total: {{ number_format($grandTotalAmount, 2) }} {{ number_format($grandTotalCost, 2) }} {{ number_format($grandTotalProfit, 2) }}