order list

@foreach ($orders as $order) @endforeach
Order Date Status Amount Action
#{{ $order->invoice_id }}

{{ date('F d, Y', strtotime($order->created_at)) }}

@if ($order->order_status === 'pending') Pending @elseif ($order->order_status === 'in_process') In Process @elseif ($order->order_status === 'delivered') Delivered @elseif ($order->order_status === 'declined') Declined @endif
{{ currencyPosition($order->grand_total) }}
View Details
@foreach ($orders as $order)
go back
    @if ($order->order_status === 'declined')
  • order declined
  • @else
  • order pending
  • order in process
  • order delivered
  • @endif {{--
  • on decliend
  • --}}

invoice to

{{ @$order->userAddress->first_name }}

{{ $order->address }}

{{ @$order->userAddress->phone }}

{{ @$order->userAddress->email }}

invoice no: {{ @$order->invoice_id }}

Payment Status: {{ @$order->payment_status }}

Payment Method: {{ @$order->payment_method }}

Transaction Id: {{ @$order->transaction_id }}

date: {{ date('d-m-Y', strtotime($order->created_at)) }}

@foreach ($order->orderItems as $item) @php $size = json_decode($item->product_size); $options = json_decode($item->product_option); $qty = $item->qty; $untiPrice = $item->unit_price; $sizePrice = $size->price ?? 0; $optionPrice = 0; foreach ($options as $optionItem) { $optionPrice += $optionItem->price; } $productTotal = ($untiPrice + $sizePrice + $optionPrice) * $qty; @endphp @endforeach
SL item description Price Quantity Total
{{ ++$loop->index }}

{{ $item->product_name }}

{{ @$size->name }} - {{ @$size->price ? currencyPosition(@$size->price) : ''}} @foreach ($options as $option) {{ @$option->name }} - {{ @$option->price ? currencyPosition(@$option->price) : '' }} @endforeach
{{ currencyPosition($item->unit_price) }} {{ $item->qty }} {{ currencyPosition($productTotal) }}
sub total - {{ currencyPosition($order->subtotal) }}
(-) Discount coupon {{ currencyPosition($order->discount) }}
(+) Shipping Cost {{ currencyPosition($order->delivery_charge) }}
Total Paid {{ currencyPosition($order->grand_total) }}
print PDF
@endforeach
@push('scripts') @endpush