@extends('frontend.layout.applayout') @section('title', 'Profile') @section('main-content')
@include('components.customer-profile')

My Orders


{{-- --}} @foreach ($customer->orders as $order) @endforeach
 Order ID Company name Order Date Contact Person name Total Items Total Status Actions
{{ $order->id }} {{ $order->company_name }} {{ $order->created_at->format('d-m-Y') }} {{ $order->customer_name }} {{ $order->total_product }} ${{ number_format($order->grand_total ?? 0, 2) }} @switch($order->status) @case('pending') {{ $order->status }} @break @case('Invoice Created') {{ $order->status }} @break @case('Shipped') {{ $order->status }} @break @case('cancelled') {{ $order->status }} @break @default @endswitch
@endsection