@extends('layouts.main_dashboard.app') @php $routePrefix = auth()->user()?->usesStaffPortal() ? 'teacher' : 'admin'; $isTeacherPortal = auth()->user()?->usesStaffPortal(); $isArabic = app()->getLocale() === 'ar'; $selectedCount = $notification->users->count(); @endphp @section('title', $isTeacherPortal ? ($isArabic ? 'تعديل الإشعار' : 'Edit Notification') @section('page_heading', $isTeacherPortal ? ($isArabic ? 'تعديل الإشعار' : 'Edit Notification') : __('dashboard.Edit Notification')) @section('page_subtitle', $isArabic ? 'حدّث النطاق الأكاديمي أو قائمة الطلاب أو صياغة الرسالة من نفس مساحة العمل.' : 'Update the academic scope, recipient list, or message content from the same workspace.') @section('skip_page_hero', true) @section('content')

{{ $isTeacherPortal ? ($isArabic ? 'إدارة الإشعارات' : 'Notification Management') : __('dashboard.Notifications') }}

{{ $isArabic ? 'تحديث الرسالة الحالية' : 'Update the current message' }}

{{ $isArabic ? 'راجع المستلمين الحاليين، غيّر النطاق عند الحاجة، ثم عدّل العنوان والمحتوى قبل حفظ النسخة الجديدة.' : 'Review current recipients, change the scope if needed, then update the title and body before saving the new version.' }}

{{ $isArabic ? 'المستلمون الحاليون' : 'Current recipients' }}

{{ number_format($selectedCount) }}

{{ $isArabic ? 'آخر تحديث' : 'Latest update' }}

{{ optional($notification->updated_at)->format('Y-m-d') ?? '—' }}

{{ $isArabic ? 'حالة الإرسال' : 'Delivery state' }}

{{ $notification->is_draft ? __('dashboard.Draft') : __('dashboard.Sent') }}

@csrf @method('PUT')

{{ $isArabic ? 'الخطوة 1' : 'Step 1' }}

{{ $isArabic ? 'إعادة تحديد النطاق الأكاديمي' : 'Re-select the academic scope' }}

{{ $isArabic ? 'الخطوة 2' : 'Step 2' }}

{{ __('dashboard.Users') }}

@foreach($notification->users as $user) @endforeach
@error('users')

{{ $message }}

@enderror

{{ $isArabic ? 'الخطوة 3' : 'Step 3' }}

{{ $isArabic ? 'تحديث صياغة الرسالة' : 'Update the message copy' }}

@endsection @section('scripts') @endsection