{{ __('dashboard.Type') }}
{{ $notification->type }}
@extends('layouts.main_dashboard.app') @php $routePrefix = auth()->user()?->usesStaffPortal() ? 'teacher' : 'admin'; $isTeacherPortal = auth()->user()?->usesStaffPortal(); $isArabic = app()->getLocale() === 'ar'; $recipientCount = $notification->users->count(); $seenCount = $notification->users->where('pivot.seen_at', '!=', null)->count(); $unseenCount = $recipientCount - $seenCount; @endphp @section('title', $isTeacherPortal ? ($isArabic ? 'تفاصيل الإشعار' : 'Notification Details') @section('page_heading', $isTeacherPortal ? ($isArabic ? 'تفاصيل الإشعار' : 'Notification Details') : __('dashboard.View Notification')) @section('page_subtitle', $isArabic ? 'راجع المحتوى، حالة المشاهدة، والمستلمين من نفس مساحة الإدارة.' : 'Review the content, seen status, and recipients from the same management workspace.') @section('skip_page_hero', true) @section('content')
{{ $isTeacherPortal ? ($isArabic ? 'إدارة الإشعارات' : 'Notification Management') : __('dashboard.Notifications') }}
{{ $isArabic ? 'عرض مركّز لتفاصيل الإشعار مع تتبع من شاهده ومن لم يطّلع عليه بعد.' : 'A focused notification view with clear tracking for who has seen it and who has not yet opened it.' }}
{{ __('dashboard.Type') }}
{{ $notification->type }}
{{ $isArabic ? 'إجمالي المستلمين' : 'Total recipients' }}
{{ number_format($recipientCount) }}
{{ $isArabic ? 'تمت المشاهدة' : 'Seen' }}
{{ number_format($seenCount) }}
{{ $isArabic ? 'بانتظار المشاهدة' : 'Awaiting view' }}
{{ number_format($unseenCount) }}
{{ $isArabic ? 'محتوى الرسالة' : 'Message body' }}
{{ $isArabic ? 'تتبّع المستلمين' : 'Recipient tracking' }}
{{ $isArabic ? 'قائمة مباشرة توضّح حالة الاطلاع لكل طالب.' : 'A direct list showing whether each student has viewed the notification.' }}
| {{ __('dashboard.Student Name') }} | {{ __('dashboard.Status') }} | {{ $isArabic ? 'وقت المشاهدة' : 'Seen at' }} |
|---|---|---|
| {{ $user->first_name }} {{ $user->last_name }} | @if($user->pivot->seen_at) {{ __('dashboard.Seen') }} @else {{ __('dashboard.Unseen') }} @endif | {{ $user->pivot->seen_at ? \Carbon\Carbon::parse($user->pivot->seen_at)->format('Y-m-d H:i') : '—' }} |