@php $logoPath = null; if (!empty($siteLogo)) { $parsedPath = parse_url($siteLogo, PHP_URL_PATH); $cleanPath = ltrim($parsedPath ?: $siteLogo, '/'); $fullLocalPath = public_path($cleanPath); if (file_exists($fullLocalPath)) { $logoPath = $fullLocalPath; } } @endphp
|
@if($logoPath)
@endif {{ $siteName }}Address: {{ $companyAddress }} Phone: {{ $companyPhone }} |
INVOICE RECEIPT
Invoice #: {{ $order->order_number }} Date: {{ $order->created_at->format('d M, Y - h:i A') }} |
|
CUSTOMER DETAILS {{ $order->customer_name }} 📞 {{ $order->phone }} @if($order->shipping_address && !str_contains($order->shipping_address, 'Over The Counter POS Sale')) {{ $order->formatted_address }} @endif |
PAYMENT TRANSACTION INFO METHOD: {{ str_replace('_', ' ', strtoupper($order->payment_method)) }} STATUS: {{ strtoupper($order->payment_status) }} @if($order->trx_id) TrxID: {{ $order->trx_id }} @endif |
| Product Description | Qty | Unit Price | Total |
|---|---|---|---|
|
{{ $item->product_name ?? $item->product->name ?? 'Product Item' }}
@if($item->selected_color || $item->selected_size)
@if($item->selected_color) Color: {{ $item->selected_color }} @endif @if($item->selected_size) Size: {{ $item->selected_size }} @endif @endif @if($item->warranty || ($item->product && $item->product->warranty)) 🛡️ Warranty: {{ $item->warranty ?? $item->product->warranty }} @endif |
{{ $item->quantity }} | ৳{{ number_format((float)$item->price, 2) }} | ৳{{ number_format(((float)$item->price) * ((int)$item->quantity), 2) }} |
| Subtotal Amount: | ৳{{ number_format($order->total_amount - $order->shipping_charge, 2) }} |
| Shipping Charge: | ৳{{ number_format($order->shipping_charge, 2) }} |
| Grand Total: | ৳{{ number_format($order->total_amount, 2) }} |