@extends('Supervisor.sidebar') @section('content')

Medical Customers

New Customer

@if($customers->isEmpty())

No medical customers found

Add Your First Customer
@else @foreach($customers as $customer) @php $record = $customer->latestRecord; $status = $customer->renewal_status; $statusLabel = $customer->renewal_status_label; $statusColor = $customer->renewal_status_color; $isCorporate = $customer->is_corporate; @endphp

{{ $customer->name }}

{{ $isCorporate ? 'Corporate' : 'Individual' }}
{{ $customer->phone }}
@if($record)
Renewal: {{ $record->renewal_date->format('M d, Y') }}
{{ $statusLabel }}
@else
No medical record yet
No Record
@endif
@endforeach @endif
@endsection