@extends('layouts.clinic') @section('title', 'روشتة جديدة — '.config('app.name')) @section('content')

الروشتة الذكية

@if(($returnTo ?? null) === 'appointments') ← العودة للحجوزات @endif
@if($linkedAppointment ?? null)
مرتبطة بالحجز {{ $linkedAppointment->appointment_number }} — {{ $linkedAppointment->patient?->name }} · {{ $linkedAppointment->appointment_date?->format('Y-m-d') }} {{ substr((string) $linkedAppointment->start_time, 0, 5) }}
@endif
@csrf @if(! empty($preselectedAppointmentId)) @endif @if(($returnTo ?? null) === 'appointments') @endif

Prescription

{{ now()->translatedFormat('d M Y') }}

الأدوية

@error('medications')
{{ $message }}
@enderror @if(session('allergy_alerts'))
    @foreach(session('allergy_alerts') as $alert)
  • {{ $alert['message'] ?? '' }}
  • @endforeach
@endif
@if(($returnTo ?? null) === 'appointments') إلغاء @else إلغاء @endif
@endsection @push('scripts') @endpush