{{ $branchInfo['name'] ?? 'Branch Name' }}

{{ $branchInfo['address'] ?? '' }}
Phone: {{ $branchInfo['phone'] ?? '' }}
Email: {{ $branchInfo['email'] ?? '' }}

Tax Invoice

Invoice No: {{ $offlineSale->order_id }}
Date: {{ \Carbon\Carbon::parse($offlineSale->created_at)->format('d-M-Y H:i') }}
Customer: {{ $offlineSale->customer_details['name'] ?? 'Walk-in Customer' }}
@if (!empty($offlineSale->customer_details['phone_number'])) Phone: {{ $offlineSale->customer_details['phone_number'] }}
@endif @if (!empty($offlineSale->customer_details['address'])) Address: {{ $offlineSale->customer_details['address'] }} @endif
@foreach ($offlineSale->sale_items as $index => $item) @endforeach
# Item Item Code Sales Price Qty Rate (Incl. GST) GST % Total
{{ $loop->iteration }} {{ $item['name'] }} {{ $item['item_code'] }} ₹{{ number_format($item['sell_price'], 2) }} {{ $item['quantity'] }} ₹{{ number_format($item['sell_price'], 2) }} {{ number_format($item['gst'] ?? 0, 2) }}% ₹{{ number_format($item['total'] ?? ($item['sell_price'] * $item['quantity']), 2) }}

Thank you for your purchase!

Subtotal (Incl. GST): ₹{{ number_format($offlineSale->sub_total, 2) }}

@if ($offlineSale->discount > 0)

Discount: -₹{{ number_format($offlineSale->discount, 2) }}

@endif @if ($offlineSale->additional_charge > 0)

Additional Charges: +₹{{ number_format($offlineSale->additional_charge, 2) }}

@endif @if ($offlineSale->cash_wallet_deduction > 0)

Cash Wallet Deduction: -₹{{ number_format($offlineSale->cash_wallet_deduction, 2) }}

@endif @if ($offlineSale->shopping_wallet_deduction > 0)

Shopping Wallet Deduction: -₹{{ number_format($offlineSale->shopping_wallet_deduction, 2) }}

@endif

Subtotal (Excl. Tax): ₹{{ number_format(($offlineSale->amount_payable ?? 0) - ($offlineSale->cgst ?? 0) - ($offlineSale->sgst ?? 0), 2) }}

CGST: ₹{{ number_format($offlineSale->cgst, 2) }}

SGST: ₹{{ number_format($offlineSale->sgst, 2) }}


Total Payable: ₹{{ number_format($offlineSale->amount_payable, 2) }}

Payment Mode: {{ ucfirst($offlineSale->payment_mode) }}