@if (!empty($summary['expenses_breakdown']))
@foreach ($summary['expenses_breakdown'] as $name => $amount)
{{ $name }} {{ number_format($amount, 2) }}
@endforeach
Total {{ number_format($summary['expenses'], 2) }}
@endif
@foreach (['Professional Fee' => 'fee', 'Miscellaneous' => 'misc', 'Franchise Fee' => 'franchise_fee', 'Discount' => 'discount', 'Profit' => 'profit'] as $label => $key) @if (isset($summary[$key])) @if($key === 'profit')
{{ $label }} {{ number_format($summary[$key], 2) }}
@else
{{ $label }} {{ number_format($summary[$key], 2) }}
@endif @endif @endforeach
Unit Price {{ number_format($summary['price'] ?? 0, 2) }}
Quantity {{ $summary['quantity'] ?? 1 }}
Total {{ number_format($summary['price_total'] ?? 0, 2) }}
VAT {{ number_format($summary['vat_total'] ?? 0, 2) }}
Total {{ number_format($summary['total_value'] ?? 0, 2) }}