@extends('layouts.admin-layout') @section('title', 'All Orders ') @section('content')
  • Order TO:
  • {{$order_detail->user->first_name ? : ''}}

    + {{$order_detail->user->phone_number ? : ''}}
  • ORDER No:{{$order_detail->tracking_no ? : ''}}
  • {{--
  • Account:0000 12345 678900
  • --}} @php use Carbon\Carbon; @endphp
  • Date:{{$formattedDate = Carbon::parse($order_detail->created_at)->format('d/m/Y')}}
@if($order_detail->orderItems->contains(fn($order) => $order->productVariation)) @endif @php $sub_total = 0; @endphp @foreach($order_detail->orderItems as $order) @if($order->productVariation) @endif @php $sub_total += $order->price * $order->quantity; @endphp @endforeach
SL Product Name Size ColorPRICE QTY TOTAL
{{$order->id ?? ''}} {{$order->products->product_name ?? ''}} {{$order->productVariation->productSizes->size_name ?? ''}} {{$order->productVariation->color_name ?? ''}}
$ {{$order->price ?? ''}} {{$order->quantity ?? ''}} $ {{$order->price * $order->quantity }}
  • Payment Info:
  • Account: 1234567890
    A/C Name:
    Bank Details: Add your details
  • SUB TOTAL:$ {{number_format($sub_total ? : '')}}
  • {{--
  • TAX:$5.00
  • --}}
  • TOTAL: $ {{number_format($sub_total ? : '')}}
@endsection