@extends('layouts.clinic-portal') @section('title', 'إدارة الموعد — '.$clinicName) @section('content')

إدارة الموعد (إلغاء أو إعادة جدولة)

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif

تفاصيل الموعد

رقم الحجز: {{ $appointment->appointment_number }}
المريض: {{ $appointment->patient?->name }}
الطبيب: {{ $appointment->doctor?->name ?? '—' }}
التاريخ: {{ $appointment->appointment_date?->format('Y-m-d') }}
الوقت: {{ substr((string) $appointment->start_time, 0, 5) }}
الحالة: {{ \App\Models\Clinic\Appointment::statusLabels()[$appointment->status] ?? $appointment->status }}
@if(! $canManage)
تعديل أو إلغاء الموعد غير متاح حالياً (مدفوع/ملغى أو داخل فترة المنع).
@else
@csrf

إلغاء الموعد

سيتم إلغاء الموعد الحالي فوراً.

@csrf

إعادة الجدولة

@endif
@endsection