@extends('public.layout.app') @section('title', $course->title) @section('body')
Courses
{{ $course->code ?? 'Course' }} {{ $course->credit_hours ? $course->credit_hours . ' credits' : 'Credits TBA' }} @if($course->duration){{ $course->duration }}@endif @if($course->semester){{ $course->semester->name }}@endif

{{ $course->title }}

{{ $course->semester?->program?->name ?? 'Academic program' }} @if($course->semester?->program?->department) | {{ $course->semester->program->department->name }} @endif

Course overview

@if($course->information)
{!! nl2br(e($course->information)) !!}
@else

This course is part of the LMS academic structure. Public descriptions, outcomes, tuition notes, and brochures can be expanded here as the academic office completes the catalogue.

@endif
Materials
{{ $course->materials->count() }}
Assignments
{{ $course->assignments->count() }}
Quizzes
{{ $course->quizzes->count() }}

Catalogue details

Duration
{{ $course->duration ?: 'To be announced' }}
Credits
{{ $course->credit_hours ? $course->credit_hours . ' credits' : 'To be announced' }}
Tuition
@if(!is_null($course->tuition_fee)) {{ $course->tuition_currency ?: 'AFN' }} {{ number_format($course->tuition_fee, 2) }} @else To be announced @endif
@foreach([ 'curriculum' => 'Curriculum', 'entry_requirements' => 'Entry requirements', 'career_opportunities' => 'Career opportunities', ] as $field => $label) @if($course->{$field})
{{ $label }}
{!! nl2br(e($course->{$field})) !!}
@endif @endforeach @if($course->brochure_path) Download brochure @endif

Learning resources

@forelse($course->materials as $material)
{{ $material->title }}
{{ ucfirst($material->type) }}
@if($material->file_path) @elseif($material->video_url) @endif
@empty
Course materials will appear here after publishing.
@endforelse
Academic path
Program{{ $course->semester?->program?->name ?? '-' }}
Department{{ $course->semester?->program?->department?->name ?? '-' }}
Faculty{{ $course->semester?->program?->department?->faculty?->name ?? '-' }}
Teachers
@forelse($course->teachers as $teacher)
{{ $teacher->name }}
{{ $teacher->qualification ?? $teacher->specialization ?? 'Instructor' }}
@empty

Teachers will be listed when assigned.

@endforelse
@include('public.partials.important-notes', ['notes' => $course->public_notes ?? null]) @include('public.partials.comment-section', ['type' => 'course', 'id' => $course->id, 'comments' => $comments ?? collect()]) @include('public.partials.feedback-form', ['type' => 'course', 'id' => $course->id])
@endsection