@if (session('success'))
{{-- ================= MEDICAL (Doctor) ================= --}}
@if($isDoctor)
{{-- Specialities --}}
@if(empty($medical['specialties']))
{{-- Diagnoses --}}
@if(empty($medical['diagnoses']))
{{-- Analyses --}}
@if(empty($medical['analyses']))
{{-- Prescriptions --}}
{{-- … --}}
@if(empty($medical['prescriptions']))
@endif
{{-- General Services --}}
@endif
{{-- ================= CLINICS (placeholder shortcut) ================= --}}
{{-- ================= NOTIFICATIONS ================= --}}
{{-- ================= ADVERTISING ================= --}}
{{-- ================= TECHNICAL ================= --}}
{{-- ================= ADMINISTRATIVE ================= --}}
{{-- ================= SECURITY ================= --}}
{{-- ================= PRIVACY (Patient) ================= --}}
{{-- ================= ADD-ONS (Dynamic) ================= --}}
@if($isDoctor && !empty($addonSubscriptions) && $addonSubscriptions->count())
@foreach($addonSubscriptions as $sub)
@php
$slug = trim((string)($sub->addon->slug ?? ('addon-'.$sub->addon_id)));
$groupKey = 'addon:' . Str::slug($slug, '-'); // ← مفتاح الجروب في الـ nav
$childKey = 'addon-' . Str::slug($slug, '-'); // ← ID للـ section + child الوحيد
$name = $sub->addon->name ?? 'Addon';
$active = method_exists($sub,'isActive') ? $sub->isActive() : (($sub->status ?? false) && optional($sub->expires_at)->isFuture());
$badgeClr = $sub->status_badge_color ?? ($active ? 'success' : 'warning');
$badgeLbl = $sub->status_label ?? ($active ? 'Active' : 'Expired');
@endphp
@endif
{{-- أزرار عامة --}}
@endforeach
@endif
{{ session('success') }}
@endif
{{-- ================= BASIC INFO ================= --}}
Basic Info
{{-- Row 1 --}}
@endif
@error('basic.full_name')
{{ $message }}
@enderror
@error('basic.email')
{{-- Row 2 --}}
{{ $message }}
@enderror
@error('basic.phone')
{{-- الحقول الخاصة فقط لغير المساعد --}}
@if(!$isAssistant)
{{ $message }}
@enderror
@error('basic.whatsapp')
{{ $message }}
@enderror
@error('basic.language')
{{ $message }}
@enderror
@error('basic.gender')
{{ $message }}
@enderror
Medical Settings — Specialities
No specialities yet.
@else
@foreach($medical['specialties'] as $i => $spName)
{{ $spName }}
@endforeach
@endif
Predefined Diagnoses
No diagnoses yet.
@else
@foreach($medical['diagnoses'] as $i => $diag)
{{ $diag }}
@endforeach
@endif
Predefined Required Analyses
No analyses yet.
@else
@foreach($medical['analyses'] as $i => $an)
{{ $an }}
@endforeach
@endif
Predefined Prescription Items
No items yet.
@else
| Medicine | Dosage | Notes | Conflicts | |
|---|---|---|---|---|
General Services (Shared)
| Service Name | Speciality | Price | |
|---|---|---|---|
|
@error("generalServices.$gi.name")
{{ $message }} @enderror
|
@error("generalServices.$gi.speciality_id")
{{ $message }} @enderror
|
@error("generalServices.$gi.price")
{{ $message }} @enderror
|
|
| No general services yet. | |||
Medical Settings — Prescription Template
@foreach($rxTemplates as $tpl)
@php
// لو مفيش ملف blade، اعرض صفحة معاينة بديلة (اعملي route لها أو خليه أي static)
$src = $tpl['preview_url'] ?: url('/admin/prescription-templates/preview/_not_found');
@endphp
@endforeach
{{-- Lightbox --}}
Clinics
Clinics, Assistants, and clinic-specific services are managed in the Clinics module.
Notification Settings
Advertising — Profile
Advertising — Media
Advertising — Templates
Technical Settings
@foreach($technical['widgets'] as $k => $v)
@endforeach
Administrative Settings
Define assistants’ privileges here. (UI ready — persistence will be wired to DB later.)
@livewire('client.setting.admin.admin-roles', ['doctorId' => $doctorId], key('admin-roles-'.$doctorId))
Security
@error('new_password')
{{ $message }}
@enderror
Sharing with Doctors
{{-- --}}
{{ $name }}
{{ $badgeLbl }}
{{ optional($sub->starts_at)->format('d M Y') }} → {{ optional($sub->expires_at)->format('d M Y') }}
@if(property_exists($sub, 'days_left') || isset($sub->days_left))
@if($sub->days_left > 0)
({{ $sub->days_left }} days left)
@else
(expired)
@endif
@endif
{{-- تحميل الكومبوننت الخاص بالـ Add-on ديناميكياً --}}
@php
$comp = $this->addonComponentFromSlug($sub->addon->slug ?? null);
@endphp
@if($comp)
@livewire($comp, ['subscription' => $sub, 'doctorId' => $doctorId], key('addon-'.$sub->id))
@else
No specific settings for this add-on yet.
You can add controls here later based on the add-on features.
@if($active)
@else
@endif