@extends('admin.layout') @section('title', 'Customer Profile: ' . $customer->fname . ' ' . $customer->lname) @section('content')
← Back to Customers
{{ substr($customer->fname, 0, 1) }}

{{ $customer->fname }} {{ $customer->lname }}

User ID: #{{ $customer->id }}
Email: {{ $customer->email }}
Phone: {{ $customer->phone }}
Referral Code: {{ $customer->ref_code ?? 'None' }}

Purchase History

@if($orders->count() > 0)
@foreach($orders as $o) @endforeach
Order ID Amount Status Date Action
#{{ $o->order_id }} ₹{{ number_format((float)$o->order_price, 2) }} {{ $o->payment_status ?? 'Pending' }} {{ date('d M Y', strtotime($o->created_date)) }} Details
@else

No orders recorded for this patient.

@endif
@endsection