@extends('layouts.app') @section('title', $account->name . ' — Corporate Scheme') @section('content') @php $corpManage = auth()->user() && auth()->user()->hasAnyRole('Super Admin', 'Hospital Admin', 'Corporate Scheme Admin', 'Finance User'); @endphp {{-- ===================== Header ===================== --}}
| Member # | MRN | Name | Type | Principal Of | Last Paid | Next Due | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $m->member_number }} | {{ $m->patient?->mrn ?? '—' }} | {{ $m->patient ? trim($m->patient->first_name . ' ' . $m->patient->last_name) : '—' }} | {{ ucfirst($m->member_type) }} | {{ $m->principal?->member_number ?? '—' }} | {{ $m->last_paid_month ?? '—' }} | {{ $m->next_due_date?->format('d M Y') ?? '—' }} | @php $badge = match ($m->status) { 'Active' => 'badge-success', 'Grace Period' => 'badge-warning', 'Pending' => 'badge-info', default => 'badge-danger', }; @endphp {{ $m->status }} |
@if($m->status === 'Pending')
@if($m->enrolment_source === 'public_form')
SELF
@endif
@if($corpManage)
@endif
@endif
Check
|
| No members enrolled yet. Click "Enrol Principal" to begin. | ||||||||