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',
'Resource Person',
'Organisation',
'Target Audience',
'Department',
'Faculty',
'Venue',
'Activity Type',
'Category',
'Level',
'Participants',
];
$columns = [];
foreach ($labels as $i => $label) {
$columns[] = [
'label' => $label,
'id' => 'column-' . Str::slug($label, '-'),
'value' => $i + 2,
'checked' => $label !== 'Venue' && $label !== 'Activity Type',
];
}
@endphp
ID
Title
Resource Person
Organisation
Target Audience
Department
Faculty
Venue
Activity Type
Category
Level
Participants
Actions