@section('page-title', 'باني المادة') @if($layoutType == 'portal') @section('sidebar-menu') @include('portal.instructor.sidebar') @endsection @endif

{{ $subject->name }} {{ $subject->code }}

@foreach([ ['id' => 'basic', 'label' => 'المعلومات الأساسية', 'icon' => 'M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'], ['id' => 'curriculum', 'label' => 'المنهج الدراسي', 'icon' => 'M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'] ] as $tab) @endforeach
@if($activeTab == 'basic')
@error('name') {{ $message }} @enderror
@error('code') {{ $message }} @enderror
مادة نشطة
@endif @if($activeTab == 'curriculum')

إدارة محتوى المنهج

تنظيم الدروس والوحدات التعليمية

@if($layoutType == 'dashboard') إدارة اختبارات المادة @endif
@foreach($modules as $module)
وحدة {{ $loop->iteration }} • {{ $module->lessons->count() }} درس
@foreach($module->lessons as $lesson)
@if($lesson->lesson_type == 'video') @else @endif
{{ $lesson->title }} {{ $lesson->duration_minutes ?? 0 }} دقيقة
@endforeach @foreach($module->exams as $exam)
{{ $exam->title }} اختبار • {{ $exam->max_score }} درجة
@endforeach @if($module->lessons->isEmpty() && $module->exams->isEmpty())
لا توجد دروس أو اختبارات مضافة لهذه الوحدة بعد.
@endif
@endforeach
@endif
@if($activeTab != 'basic') @endif
@if($activeTab != 'curriculum') @else @endif
@push('scripts') @endpush