BILL TO:
{{ $name }}
Phone: {{ $phone_number }}
@if (isset($customer['address']) && !empty(array_filter($customer['address'])))
{{ $customer['address']['house_no'] ?? '' }}
@if (
!empty($customer['address']['house_no']) &&
(!empty($customer['address']['road_name']) || !empty($customer['address']['landmark'])))
,
@endif
{{ $customer['address']['road_name'] ?? '' }}
@if (!empty($customer['address']['road_name']) && !empty($customer['address']['landmark']))
,
@endif
{{ $customer['address']['landmark'] ?? '' }}
@if (
(!empty($customer['address']['house_no']) ||
!empty($customer['address']['road_name']) ||
!empty($customer['address']['landmark'])) &&
(!empty($customer['address']['district']) || !empty($customer['address']['state'])))
,
@endif
{{ $customer['address']['district'] ?? '' }}
@if (!empty($customer['address']['district']) && !empty($customer['address']['state']))
,
@endif
{{ $customer['address']['state'] ?? '' }}
@if (!empty($customer['address']['pin']))
- {{ $customer['address']['pin'] }}
@endif
@else
Address: N/A
@endif
INVOICE NO: {{ $order_id }}
DATE :{{ $sale_date }}
| Product Name |
Qty |
Unit Price (₹) |
Amount (₹) |
@foreach ($items as $item)
|
{{ $item['full_product_name'] }}
@if ($item['full_variant_name'] !== 'N/A')
({{ $item['full_variant_name'] }})
@endif
@if (!empty($item['description']))
IMEI/Serial.NO: ( {{ $item['description'] }} )
@endif
|
{{ $item['quantity'] }} |
{{ number_format($item['sell_price'], 2) }} |
{{ number_format($item['amount'], 2) }} |
@endforeach
| Subtotal: |
₹{{ number_format($total_amount, 2) }} |
@if ($cash_wallet_deduction > 0)
| Cash Wallet Used: |
- ₹{{ number_format($cash_wallet_deduction, 2) }} |
@endif
@if ($shopping_wallet_deduction > 0)
| Shopping Wallet Used: |
- ₹{{ number_format($shopping_wallet_deduction, 2) }} |
@endif
@if ($discount > 0)
| Discount: |
- ₹{{ number_format($discount, 2) }} |
@endif
| Amount Payable: |
₹{{ number_format($amount_payable, 2) }} |
@php
$beforeGstValue = 0;
$cgst = 0;
$sgst = 0;
$totalGst = 0;
$finalTotalAmount = $amount_payable;
if ($is_gst && $amount_payable > 0 && $gst_rate > 0) {
$beforeGstValue = round($amount_payable / (1 + $gst_rate / 100), 2);
$totalGst = round($amount_payable - $beforeGstValue, 2);
$cgst = round($totalGst / 2, 2);
$sgst = round($totalGst / 2, 2);
} else {
$beforeGstValue = $amount_payable;
}
@endphp
@if ($is_gst)
| Before GST Value: |
₹{{ number_format($beforeGstValue, 2) }} |
| SGST: |
+₹{{ number_format($sgst, 2) }} |
| CGST: |
+₹{{ number_format($cgst, 2) }} |
| Total (incl. GST): |
₹{{ number_format($finalTotalAmount, 2) }} |
@endif