@extends('layouts.app') @section('content')

All Online Courses

Department @if(auth()->user()->role_id == 1) {{-- Admin: can choose any department --}} @else {{-- Coordinator/Faculty: department is fixed --}} @endif
Course Offered By
Date Range to
@php use Illuminate\Support\Str; $labels = [ 'Faculty', 'Department', 'Course', 'Offered By', 'Start Date', 'End Date', 'Num Days', ]; $columns = []; foreach ($labels as $i => $label) { $columns[] = [ 'label' => $label, 'id' => 'column-' . Str::slug($label, '-'), 'value' => $i + 2, 'checked' => $label !== 'Num Days', ]; } @endphp
ID Faculty Department Course Offered By Start Date End Date Num Days Actions
@endsection @section('scripts') @endsection