@extends('layouts.frontendlayout') @section('content')
Viewing schedule for: {{ Auth::user()->name }}
{{-- Basic filter/selector for semester (if applicable) --}}| Course Code | Course Name | Instructor | Day(s) | Time | Location | Semester |
|---|---|---|---|---|---|---|
| {{ $course->code }} | {{ $course->name }} | @if ($course->instructors->isNotEmpty()) {{ $course->instructors->pluck('name')->join(', ') }} @else N/A @endif | {{ $course->pivot->day_of_week }} | {{-- e.g., 'Monday', 'T/Th', 'MWF' --}}{{ \Carbon\Carbon::parse($course->pivot->start_time)->format('h:i A') }} - {{ \Carbon\Carbon::parse($course->pivot->end_time)->format('h:i A') }} | {{ $course->pivot->location }} | {{-- e.g., 'Building A, Room 101' --}}{{ $course->pivot->semester_name ?? 'N/A' }} | {{-- Assuming you fetch this or define it --}}