{{ __('Payment Receipt') }}
@php
$payment = $order->payments()?->latest()->first();
$transactionId = $payment?->payment_token ?? str_pad($order->id, 6, '0', STR_PAD_LEFT);
$user = $order->customer?->user;
@endphp
Payment Details
| Payment Method: |
{{ $order->payment_method->value }} |
| Transaction ID: |
{{ $transactionId }} |
| Payment Status: |
{{ $order->payment_status->value }} |
|
| Paid Amount: |
{{ $order->payment_status->value == 'Paid' ? showCurrency($order->payable_amount) : showCurrency(0) }}
|
@if ($order->payment_status->value != 'Paid')
| Due Amount: |
{{ showCurrency($order->payable_amount) }}
|
@endif
|
Customer Details
|
Name:
{{ $user?->name }}
|
Email:
{{ $user?->email ?? '-' }}
|
Phone:
{{ $user?->phone ?? '-' }}
|
Order Summary
|
Order ID:
#{{ $order->prefix . $order->order_code }}
|
Order Date:
{{ $order->created_at->format('F d, Y') }}
|
Status:
{{ $order->payment_status->value }}
|
| Item |
Quantity |
Price |
Total |
@foreach ($order->products ?? [] as $product)
| {{ $product->name }} |
{{ $product->pivot->quantity }} |
{{ showCurrency($product->pivot->price) }} |
{{ showCurrency($product->pivot->quantity * $product->pivot->price) }}
|
@endforeach
| Subtotal |
{{ showCurrency($order->total_amount) }} |
| Shipping |
{{ showCurrency($order->delivery_charge) }} |
@if ($order->coupon_discount > 0)
| Discount |
{{ showCurrency($order->coupon_discount) }} |
@endif
@foreach ($order->vatTaxes ?? [] as $vatTax)
|
{{ $vatTax->name . '(' . $vatTax->percentage . '%)' }}
|
{{ showCurrency($vatTax->amount) }} |
@endforeach
@if ($order->tax_amount > 0 && count($order->vatTaxes ?? []) <= 0)
| Total Tax Amount |
{{ showCurrency($order->tax_amount) }} |
@endif
| Grand Total |
{{ showCurrency($order->payable_amount) }} |