@extends('dashboards.user.index') @section('content')

Order Detail

Order

{{--
--}} {{-- @csrf--}} {{-- --}} {{-- --}} {{--
--}}
  • Deliver TO:
  • {{ $user->name ?? '' }}
    {{ $order->shipping_address ?? '' }}
    {{ $user->phone ?? '' }}
  • Order No: {{ $order->order_number ?? '' }}
  • {{--
  • Account:0000 12345 678900
  • --}}
  • Date:{{ $order->created_at->format('y-m-d') }}
@forelse($order->details as $index => $item) @empty @endforelse
SL PRODUCT NAME SIZE COLOR PRICE QTY TOTAL ACTION
{{$index + 1 ?? ''}} {{ $item->product->name ?? '' }} {{ $item->size->name ?? 'No Size' }} @if(isset($item->color))
@else No Color @endif
${{ $item->unit_price ?? '' }} {{ $item->quantity ?? '' }} ${{ $item->subtotal ?? '' }} {{-- @if(is_null($item->product->returnPolicy))--}} {{-- --}} {{-- @else--}} {{-- --}} {{-- @endif--}}
Something went wrong!
{{--
    --}} {{--
  • Payment Info:
  • --}} {{--
  • --}} {{-- Account: 1234567890
    --}} {{-- A/C Name:
    --}} {{-- Bank Details: Add your details--}} {{--
  • --}} {{--
--}}
  • SUB TOTAL:${{ $order->total_price ?? 0.00 }}
  • DISCOUNT:${{ $order->discount ?? 0.00 }}
  • TOTAL: ${{isset($order->total_amount_after_discount) ? $order->total_amount_after_discount : $order->total_price }}
@endsection @section('script') @endsection