@if ($data['customer']['state_name'] == 'Gujarat') @else @endif @php $serialNumber = 1; // Initialize the serial number @endphp @if (!empty($data['order_items'])) @foreach ($data['order_items'] as $item) @if ($data['customer']['state_name'] == 'Gujarat') @php $sgst = ($item['tax_amount'] ?? 0) / 2; $cgst = ($item['tax_amount'] ?? 0) / 2; @endphp @else @endif @endforeach @else @endif @php $items = $data['order_items'] ?? []; @endphp @for ($i = count($items); $i < 15; $i++) @if ($data['customer']['state_name'] == 'Gujarat') @endif @endfor @if ($data['customer']['state_name'] == 'Gujarat') @else @endif {{-- --}}
@if ($data['company']['company_logo'] && file_exists(public_path($data['company']['company_logo']))) Company Logo @else Placeholder Logo @endif {{ $data['company']['name'] }}
Address {{ $data['company']['address_line_1'] }}, {{ $data['company']['address_line_2'] }},
{{ $data['company']['area'] }}, {{ $data['company']['pincode'] }}
Invoice No: #0 Invoice Date: {{ Date('d-m-y') }}
Invoice To: {{ $data['customer']['first_name'] . ' ' . $data['customer']['last_name'] }}
Email: {{ $data['customer']['email'] }}
Phone Number: {{ $data['customer']['phone_number'] }}
Sr No. Item Gold Ct Gross Wt. N.Wt. QtyCGST SGSTIGSTGross Amount
{{ $serialNumber++ }} {{ $item['item_name'] }} {{ $item['gold_purity'] ?? '' }} {{ number_format($item['gross_weight'] ?? 0, 2) }} {{ number_format($item['net_weight'] ?? 0, 2) }} {{ $item['pcs'] }}{{ number_format($sgst, 2) }} {{ number_format($cgst, 2) }} {{ number_format($item['tax_amount'] ?? 0, 2) }} {{ number_format($item['net_amount'] ?? 0, 2) }}
No items available.
GST {{ number_format($data['gst_totao_amount'] ?? 0, 2) }}
Old Gold Amount {{ number_format($data['total_old_Amount'] ?? 0, 2) }}
Net Total (inc.GST) {{ number_format($data['totalFinalPayableAmount'] ?? 0, 2) }}
GST {{ number_format($data['gst_totao_amount'] ?? 0, 2) }}
Old Gold Amount {{ number_format($data['total_old_Amount'] ?? 0, 2) }}
Net Total (inc.GST) {{ number_format($data['totalFinalPayableAmount'] ?? 0, 2) }}