@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')
@endcan
@can('appointment-consultation-view')
@endcan
@can('appointment-clinic-assessment-view')
@endcan
@can('appointment-eye_clinic-view')
@endcan
@can('appointment-laboratory-view')
@endcan
@can('appointment-prescription-view')
@endcan
@can('image-appointment-laboratory-view')
@endcan
@can('appointment-eye_prescription-view')
@endcan
@can('patient-eye_surgical-view')
@endcan
@can('patient-eye_recall-view')
@endcan
@can('appointment-eye_clinic-view')
@endcan
@can('appointment-admission-view')
@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')
@endcan
@can('appointment-dental-view')
@endcan
@can('appointment-orthodentic-view')
@endcan
@can('appointment-service-view')
@endcan
@can('appointment-payment-summary-view')
{{-- closed until the user opens it --}}
@include('patient_mangement.appointment.profile.financial_summary')
@endcan