Department
@if(auth()->user()->role_id == 1)
{{-- Admin: can choose any department --}}
All Departments
@foreach($departments as $department)
{{ $department->name }}
@endforeach
@else
{{-- Coordinator/Faculty: department is fixed --}}
{{ auth()->user()->department->name }}
@endif
Course Offered By
All Platforms
NPTEL
Google Digital Garage
LinkedIn Learning
Microsoft Learn
Coursera
edX
Udemy
@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