@extends('backEnd.layouts.master') @section('title','Customer Profile') @section('css') @endsection @section('content')

Customer Profile

Back to List {{-- Login as Customer --}}
@csrf
profile-image

{{$profile->name}}

{{ $profile->area ?? 'Area' }}, {{ $profile->district ?? 'District' }}

Personal Information
Mobile {{$profile->phone}}
Email {{$profile->email}}
Address {{$profile->address}}
District {{$profile->district}}
Upazila/Area {{$profile->area}}
@foreach($profile->orders as $key=>$value) @endforeach
SL Invoice ID Date & Time Shipping Method Amount Status
{{$loop->iteration}} #{{$value->invoice_id}}
{{ date('d M, Y', strtotime($value->created_at)) }} {{ date('h:i A', strtotime($value->created_at)) }}
{{$value->shipping ? $value->shipping->name : 'N/A'}} ৳{{ number_format($value->amount, 2) }} @php $statusName = $value->status ? $value->status->name : 'Pending'; $badgeClass = 'badge-soft-warning'; // Default if(strtolower($statusName) == 'completed' || strtolower($statusName) == 'delivered') { $badgeClass = 'badge-soft-success'; } elseif(strtolower($statusName) == 'cancelled') { $badgeClass = 'badge-soft-danger'; } elseif(strtolower($statusName) == 'processing') { $badgeClass = 'badge-soft-info'; } @endphp {{ $statusName }}
@endsection @section('script') @endsection