@extends('admin.layouts.master') @section('title', 'خطط العلاج') @section('content')
خطط العلاج
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
قائمة خطط العلاج
@forelse($plans as $plan) @php $status = $plan->status; $badgeClass = match($status) { 'draft' => 'secondary', 'ongoing' => 'warning', 'completed'=> 'success', 'cancelled'=> 'danger', default => 'secondary', }; @endphp @empty @endforelse
# المريض الطبيب العنوان الحالة تاريخ الإنشاء إجراءات
{{ $plan->id }} {{ $plan->patient?->first_name }} {{ $plan->patient?->last_name }}
كود: {{ $plan->patient?->code ?? '-' }}
{{ $plan->doctor?->user?->name ?? '-' }} {{ $plan->title ?? '-' }} @switch($status) @case('draft') مسودة @break @case('ongoing') جارية @break @case('completed') مكتملة @break @case('cancelled') ملغاة @break @default غير معروف @endswitch {{ $plan->created_at?->format('Y-m-d') }}
عرض {{--
--}} {{-- @csrf--}} {{-- @method('DELETE')--}} {{-- --}} {{--
--}}
لا توجد خطط علاج مسجلة حتى الآن.
{{ $plans->links() }}
@endsection