@extends('layouts.user-dashboard-layout') @section('title', 'All Orders') @section('user-dashboard-content')
{{-- Header Section --}} {{-- Order Details Table --}}
{{-- Order Info --}}
  • Order To:
  • {{ $order_detail->user->first_name ?? '' }}

    +{{ $order_detail->user->phone_number ?? '' }}
@php use Carbon\Carbon; @endphp
  • Order No: {{ $order_detail->order_number ?? '' }}
  • Date: {{ Carbon::parse($order_detail->created_at)->format('d/m/Y') }}
{{-- Product Table --}}
@php $sub_total = 0; @endphp @foreach($order_detail->orderItems as $order) @php $sub_total += $order->price * $order->quantity; @endphp @endforeach
SL Product Name Price Qty Total
{{ $order->id ?? '' }} {{ $order->product->product_name ?? '' }} ${{ $order->price ?? '' }} {{ $order->quantity ?? '' }} ${{ $order->price * $order->quantity }}
{{-- Payment Info --}}
  • Payment Info:
  • Account: 1234567890
    A/C Name:
    Bank Details: Add your details
  • Sub Total: ${{ number_format($sub_total ?? 0, 2) }}
  • {{--
  • Tax:$5.00
  • --}}
  • Total: ${{ number_format($sub_total ?? 0, 2) }}
@endsection