@extends(session('staff_logged_in') ? 'Staff.layout' : 'Admin.layout') @section('content')

{{ $patient->patient_name }}

Patient
{{ $patient->sheet_no }} {{ $patient->phone }} @if($patient->gender) {{ $patient->gender }} @endif @if($patient->age) {{ $patient->age }} Years @endif
@if($patient->blood_group) {{ $patient->blood_group }} @endif Profile Overview
{{-- Sidebar Tabs + Content --}}
{{-- Vertical Tabs (sidebar on laptop, stacked pills on mobile) — UNCHANGED --}}
{{-- Tab Content --}}
{{-- Profile Tab (now editable) --}}
@csrf @method('PUT') {{-- Basic Details Card --}}
Basic Details
{{-- Address Card --}}
Address
{{-- Emergency Contact Card --}}
Emergency Contact
{{-- Medical Tab (now editable) --}}
@csrf @method('PUT') {{-- Medical History Card --}}
Medical History
{{-- Insurance Card --}}
Insurance
{{-- Lifestyle Card --}}
Lifestyle
{{-- Reports Tab — UNCHANGED --}}
Reports
@forelse($reports as $report)
{{ $report->report_type }}
{{ $report->report_date }}{{ $report->notes ? ' • ' . $report->notes : '' }}
@if($report->file_path) @endif
@empty

No reports added yet

@endforelse
{{-- Cases Tab — UNCHANGED --}}
Cases
@forelse($cases as $case) @empty @endforelse
Date Title Type Doctor Follow Up Action
{{ $case->created_at->format('d M Y') }} {{ $case->title }} {{ $case->type == 'text' ? 'Text' : 'Handwritten' }} {{ $case->doctor->doctor_name ?? '-' }} @if($case->followUps->isNotEmpty()) {{ $case->followUps->first()->follow_up_date ?? '-' }} @else - @endif

No case notes added yet

{{-- Appointments Tab — UNCHANGED --}}
Appointments
{{-- Inline Appointment Form --}}
@forelse($appointments as $apt) @empty @endforelse
Appt ID Doctor Department Date Time Visit Type Status
{{ $apt->appointment_id }} {{ $apt->doctor->doctor_name ?? '-' }} {{ $apt->department ?? '-' }} {{ $apt->appointment_date }} {{ $apt->appointment_time }} {{ $apt->visit_type ?? '-' }} @php $cls = match($apt->status) { 'Confirmed' => 'bg-label-success', 'Cancelled' => 'bg-label-danger', 'Closed' => 'bg-label-info', 'Completed' => 'bg-label-primary', default => 'bg-label-warning' }; @endphp {{ $apt->status }}

No appointments found

{{-- Delete Patient Modal --}} {{-- Add Report Modal --}} {{-- Case Type Modal --}} @endsection