@extends('institution.partials.print-layout')
@section('print-title', $record->name)
@section('print-content')
@php $status = is_object($record->status) ? $record->status : \App\Enums\RecordStatus::tryFrom($record->status ?? 'active'); @endphp
{{ $record->name }}
| Programme | {{ $record->programme?->name ?? '—' }} |
| Study Plan Period | {{ $record->studyPlanPeriod?->name ?? '—' }} |
| Level | {{ $record->level ?? '—' }} |
| Semester | {{ $record->semester_number ?? '—' }} |
| Total Credits | {{ $record->total_credits ?? '—' }} |
| Status | {{ $status?->label() }} |
@if($record->items->isNotEmpty())
Courses
| Code | Name | Credits | Type |
@foreach($record->items as $item)
| {{ $item->course_code }} |
{{ $item->course_name }} |
{{ $item->credits ?? '—' }} |
{{ $item->is_core ? 'Core' : ($item->is_elective ? 'Elective' : '—') }} |
@endforeach
@endif
@endsection