@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'لوحة المدرس' : 'Teacher Dashboard') @section('page_heading', app()->getLocale() === 'ar' ? 'لوحة المدرس' : 'Teacher Dashboard') @section('page_subtitle', app()->getLocale() === 'ar' ? 'إدارة المقررات والمحتوى والأنشطة القادمة من مساحة واحدة.' : 'Manage courses, teaching content, and upcoming activity from one space.') @section('skip_page_hero', true) @section('page_content_wrapper_class', 'min-h-full') @section('content') @php $isArabic = app()->getLocale() === 'ar'; @endphp

{{ $isArabic ? 'مساحة إدارة التدريس' : 'Teaching workspace' }}

{{ $isArabic ? "مرحبًا {$teacherName}" : "Welcome back, {$teacherName}" }}

{{ $isArabic ? 'لوحة تشغيل عملية للمقرر اليومي: راقب العبء التدريسي، افتح أدوات النشر بسرعة، وراجع الجلسات والنشاط الأخير من نفس الشاشة.' : 'A practical teaching command board for your daily flow: monitor course load, jump into publishing tools, and review sessions and recent activity from the same screen.' }}

{{ $isArabic ? 'متوسط العبء لكل مقرر' : 'Average load per course' }}

{{ $courseLoadAverage }}

{{ $isArabic ? 'يحسب من المواد والواجبات والاختبارات المنشورة.' : 'Based on published materials, assignments, and quizzes.' }}

{{ $isArabic ? 'جلسات قائمة على المقررات' : 'Courses with live rooms' }}

{{ $coursesWithLiveRooms }}

{{ $isArabic ? 'عدد المقررات التي تحتوي على فصول افتراضية.' : 'Number of courses already using live sessions.' }}

@foreach ($metrics as $metric)

{{ $metric['label'] }}

{{ number_format($metric['value']) }}

@endforeach

{{ $isArabic ? 'استفسارات بانتظار الرد' : 'Inquiries awaiting reply' }}

{{ $isArabic ? 'آخر الرسائل التي لم تتلقَّ ردًا منك بعد داخل المقررات المسندة.' : 'The latest messages across your assigned courses that are still waiting for your response.' }}

@if ($pendingInquiryCards->isNotEmpty()) @foreach ($pendingInquiryCards as $inquiry)
{{ $inquiry['status_label'] }} {{ $inquiry['time_label'] }}

{{ $inquiry['title'] }}

{{ $inquiry['student_name'] }} @if ($inquiry['course_name']) • {{ $inquiry['course_name'] }} @endif

{{ $inquiry['message_excerpt'] }}

@endforeach @else
{{ $isArabic ? 'لا توجد استفسارات معلقة حالياً.' : 'There are no pending inquiries right now.' }}
@endif

{{ $isArabic ? 'آخر الأنشطة' : 'Latest activity' }}

{{ $isArabic ? 'ملخص زمني لما نُشر داخل مقرراتك مؤخراً.' : 'A chronological summary of what was published across your courses.' }}

@if ($activityFeed->isNotEmpty()) @foreach ($activityFeed as $item)
{{ $item['type'] }} {{ $item['time_label'] }}

{{ $item['title'] }}

{{ $item['course'] }}

@endforeach @else
{{ $isArabic ? 'لا توجد أنشطة حديثة بعد داخل مقرراتك.' : 'There is no recent activity inside your courses yet.' }}
@endif

{{ $isArabic ? 'الجلسات القادمة' : 'Upcoming live sessions' }}

{{ $isArabic ? 'الوصول السريع إلى أقرب الفصول الافتراضية المجدولة.' : 'Quick access to the nearest scheduled virtual classes.' }}

@if ($upcomingRoomCards->isNotEmpty()) @foreach ($upcomingRoomCards as $room)

{{ $room['title'] }}

{{ $room['course_name'] }}

{{ $room['start_label'] }}

{{ $room['relative_label'] }}
@endforeach @else
{{ $isArabic ? 'لا توجد جلسات مباشرة قادمة حالياً.' : 'There are no upcoming live sessions right now.' }}
@endif
@endsection