{{ $category ?? null }}

@foreach ($semester_datas as $semesterData) @foreach ($semesterData['courses'] as $index => $course) @if ($index > 0) @endif @php $course_list = App\Models\Course::where('id', $course)->first(); // Find the course by its ID if ($course_list) { $name = $course_list->name; // Get the name of the course } else { $name = 'Course not found'; // Fallback in case the course doesn't exist } @endphp @endforeach @endforeach
Semester Title Name
{{ 'Semester ' . $semesterData['semester'] }}
{{ 'Course' . sprintf('%02d', $index + 1) }} {{ 'Course' . sprintf('%02d', $index + 1) }} - {{ $name }}

₹ {{ $course_fee ?? null }}