@extends('layouts.admin.app') @section('title','Detail Reservasi') @section('content')

Detail Reservasi

@if($appointment->familyMember) @endif
Nama Pasien {{ $appointment->familyMember ? $appointment->familyMember->name : $appointment->patient->name }}
Reservasi Oleh {{ $appointment->patient->name }}
Layanan {{ $appointment->service->name }}
Bidan {{ $appointment->midwife?->name ?? '-' }}
Tanggal & Jam {{ $appointment->appointment_date }} {{ $appointment->appointment_time }}
Status {{ ucfirst(str_replace('_',' ',$appointment->status)) }}
{{-- ACTION BUTTONS BASED ON STATUS --}}
{{-- Scheduled → Admin confirms --}} @if($appointment->status == 'scheduled')
@csrf
@endif {{-- Confirmed → Print Card --}} @if($appointment->status == 'confirmed') Cetak Kartu Reservasi
@csrf
@endif {{-- In Progress → Fill Medical Record --}} @if($appointment->status == 'in_progress') Isi Rekam Medis @endif {{-- Completed → View Medical Record --}} @if($appointment->status == 'completed' && $appointment->medicalRecord) Lihat Rekam Medis @endif Kembali ke Daftar Reservasi
@endsection