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

All Activities Organised

Department @if(auth()->user()->role_id == 1) {{-- Admin: can choose any department --}} @else {{-- Coordinator/Faculty: department is fixed --}} @endif
Category
Date Range to
@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
@endsection @section('scripts') @endsection