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
Activity
All Activities
Research Collaboration Meet
Workshop Facilitator
Technical Seminar
Industry Training Program
Guest Lecture
Conference Speaker
@php
use Illuminate\Support\Str;
$labels = [
'Faculty',
'Department',
'Activity',
'Activity Description',
'Inviting Organization',
'Start Date',
'End Date',
'Num Days',
];
$columns = [];
foreach ($labels as $i => $label) {
$columns[] = [
'label' => $label,
'id' => 'column-' . Str::slug($label, '-'),
'value' => $i + 2,
'checked' => true,
];
}
@endphp
ID
Faculty
Department
Activity
Activity Description
Inviting Organization
Start Date
End Date
Num Days
Actions