{{ $isArabic ? 'إجمالي المساقات' : 'Total courses' }}
{{ number_format($courses->total()) }}
@extends('layouts.main_dashboard.app') @php $routePrefix = auth()->user()?->usesStaffPortal() ? 'teacher' : 'admin'; $isTeacherPortal = auth()->user()?->usesStaffPortal(); $isArabic = app()->getLocale() === 'ar'; $courseItems = $courses->getCollection(); $classCount = $courseItems->pluck('schoolClass.id')->filter()->unique()->count(); $subjectCount = $courseItems->pluck('subject.id')->filter()->unique()->count(); @endphp @section('title', __('dashboard.My courses')) @section('page_heading', __('dashboard.My courses')) @section('page_subtitle', $isArabic ? 'مراجعة سريعة للمساقات المسندة إليك مع وصول مباشر إلى الإدارة الأكاديمية لكل مساق.' : 'A focused view of the courses assigned to you with direct access to each course workspace.') @section('skip_page_hero', true) @section('content')
{{ $isTeacherPortal ? ($isArabic ? 'مساقاتك الحالية' : 'Current teaching load') : __('dashboard.My courses') }}
{{ $isArabic ? 'افتح أي مساق للوصول السريع إلى المحتوى، الواجبات، الاختبارات، والمتابعة اليومية بدون ازدحام بصري.' : 'Open any course for quick access to content, assignments, quizzes, and daily teaching operations without visual clutter.' }}
{{ $isArabic ? 'إجمالي المساقات' : 'Total courses' }}
{{ number_format($courses->total()) }}
{{ $isArabic ? 'المواد الظاهرة' : 'Visible subjects' }}
{{ number_format($subjectCount) }}
{{ $isArabic ? 'الفصول الظاهرة' : 'Visible classes' }}
{{ number_format($classCount) }}
{{ $isArabic ? 'دليل المساقات' : 'Courses directory' }}
{{ $isArabic ? 'القائمة التالية تركز على الوصول السريع إلى المساق وإدارته.' : 'The list below focuses on fast course access and management.' }}
{{ __('dashboard.You are not currently assigned to any courses.') }}
| {{ $isArabic ? 'المساق' : 'Course' }} | {{ $isArabic ? 'المادة' : 'Subject' }} | {{ $isArabic ? 'الفصل' : 'Class' }} | {{ __('dashboard.Actions') }} |
|---|---|---|---|
|
@if($course->image)
{{ $course->name }} {{ $course->subject->grade->stage->name ?? '' }} / {{ $course->subject->grade->name ?? '' }} |
{{ $course->subject->name ?? 'N/A' }} | {{ $course->schoolClass->name ?? 'N/A' }} |