{{ $branchInfo['name'] }}

{{ $branchInfo['address'] ?? '' }}

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

SALES RECEIPT
Bill No: {{ $offlineSale->order_id }}
Date: {{ \Carbon\Carbon::parse($offlineSale->created_at)->format('d/m/Y H:i') }}
Customer: {{ $offlineSale->customer_details['name'] ?? 'Walk-in' }}
@if (isset($offlineSale->customer_details['phone_number']))
Phone: {{ $offlineSale->customer_details['phone_number'] }}
@endif
@foreach ($offlineSale->sale_items as $index => $item) {{-- --}} @endforeach
SN ITEMS Qty Rate Amt
{{ $index + 1 }} {{ $item['name'] }}{{ number_format($item['quantity']) }} {{ number_format($item['sell_price'], 0) }} {{ number_format($item['sell_price'] * $item['quantity'] - ($item['discount'] ?? 0), 0) }} {{ number_format($item['quantity']) }} {{ number_format($item['sell_price'], 2) }} {{ number_format($item['sell_price'] * $item['quantity'] - ($item['discount'] ?? 0), 2) }}

Sub Total: ₹{{ number_format($offlineSale->sub_total, 2) }}

@if ($offlineSale->discount > 0)

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

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

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

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

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

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

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

@endif

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

Paid By: {{ ucfirst($offlineSale->payment_mode) }}

Received: ₹{{ number_format($offlineSale->receivedAmount ?? $offlineSale->amount_payable, 2) }}