@extends(request()->boolean('embed') ? 'layouts.embed_full' : 'layouts.master') @section('title', $title) @section('page_css') @endsection @section('content')
@include('patient_mangement.appointment.profile.profile', ['hideEditPatient' => true]) {{-- Not in the ?embed=1 copy — that's what this partial's own visit modal loads, and it would otherwise nest itself. --}} @unless (request()->boolean('embed')) @include('patient_mangement.appointment.profile.patient_info') @endunless
@can('appointment-vital-signs-view')
Vital signs
Loading...
@endcan @can('appointment-consultation-view')
Examination / History
Loading...
@endcan @can('appointment-clinic-assessment-view')
Clinic Assessment
Loading...
@endcan @can('appointment-eye_clinic-view')
Eye Examination
Loading...
@endcan @can('appointment-laboratory-view')
Laboratory
Loading...
@endcan @can('appointment-prescription-view')
Prescription
Loading...
@endcan @can('image-appointment-laboratory-view')
Image
Loading...
@endcan @can('appointment-eye_prescription-view')
Spectacle Prescription
Loading...
@endcan @can('patient-eye_surgical-view')
Surgical Procedures
Loading...
@endcan @can('patient-eye_recall-view')
Recalls
Loading...
@endcan @can('appointment-eye_clinic-view')
IOP Trend
Loading...
@endcan @can('appointment-admission-view')
Admission
Loading...
@endcan {{-- Operation has its own permission (appointment-operation-view) — it was wrongly nested under Admission's @can above, which let the card render for someone who could see Admission but not Operation, and the iframe would just show a bare "not authorized" page. --}} @can('appointment-operation-view')
Operation
Loading...
@endcan @can('appointment-dental-view')
Dental
Loading...
@endcan @can('appointment-orthodentic-view')
Orthodentic
Loading...
@endcan @can('appointment-service-view')
Service
Loading...
@endcan @can('appointment-payment-summary-view')
{{-- closed until the user opens it --}}
@include('patient_mangement.appointment.profile.financial_summary')
@endcan
{{-- No tabs — this patient's past appointments open in this same single-page view (see baseUrl below), never the old tabbed profile page. --}} {{-- Lab result — lives here, at the actual top-level document, because "View" is clicked from inside the Laboratory single-page-section's own iframe: a modal built inside that iframe can never cover this page's own chrome (the "Laboratory" card header above it, the other single-page-section cards, …) — it's clipped to the iframe's own box no matter its z-index. The iframe's viewLabResult() calls up to window.parent (defined below) to open this one instead. --}} @endsection @section('page_js') @endsection