@extends('layouts.app') @section('title', 'لوحة المريض') @section('page_title', 'لوحة المريض - {{ auth()->user()->name }}') @section('content')

مرحباً {{ auth()->user()->name }}

يمكنك متابعة مواعيدك القادمة بكل سهولة.

@php($doctors = \App\Models\User::where('role','doctor')->orderBy('name')->get())
مواعيدي القادمة
    @forelse(auth()->user()->patientAppointments()->with('doctor')->where('appointment_date', '>=', today())->orderBy('appointment_date')->take(10)->get() as $appointment)
  • د. {{ $appointment->doctor->name }}
    {{ \Carbon\Carbon::parse($appointment->appointment_date)->format('Y-m-d') }} — {{ substr((string)$appointment->appointment_time, 0, 5) }}
    {{ $appointment->status }}
  • @empty
  • لا توجد مواعيد قادمة.
  • @endforelse
الأدوية الحالية
    @foreach(auth()->user()->patientPrescriptions()->with('doctor')->latest()->get() as $prescription)
  • {{ $prescription->medication_name }} {{ $prescription->dosage }} {{ $prescription->frequency }} - {{ $prescription->instructions }} د. {{ $prescription->doctor->name }}
    {{ $prescription->is_active ? 'نشط' : 'منتهي' }}
  • @endforeach
@include('components.appointment-add-modal') @section('scripts') @endsection @endsection