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
Category
All Categories
@if(isset($dropdowns['categories']) && is_array($dropdowns['categories']))
@foreach($dropdowns['categories'] as $key => $label)
{{ $label }}
@endforeach
@endif
@php
use Illuminate\Support\Str;
$labels = [
'Title',
'Organising Institute',
'Address',
'Department',
'Faculty',
'Start Date',
'End Date',
'Days',
'Activity Type',
'Category',
'Level',
];
$columns = [];
foreach ($labels as $i => $label) {
$columns[] = [
'label' => $label,
'id' => 'column-' . Str::slug($label, '-'),
'value' => $i + 2,
'checked' => $label !== 'Days',
];
}
@endphp
ID
Title
Organising Institute
Address
Department
Faculty
Start Date
End Date
Days
Activity Type
Category
Level
Actions