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
Status
Both
Granted
Filed
@php
use Illuminate\Support\Str;
$labels = [
'Faculty',
'Department',
'Title',
'Investigator',
'Application No',
'Type',
'Date Of Submission',
'Date Of Filling',
'Status',
];
$columns = [];
foreach ($labels as $i => $label) {
$columns[] = [
'label' => $label,
'id' => 'column-' . Str::slug($label, '-'),
'value' => $i + 2,
'checked' => $label !== 'Date Of Filling',
];
}
@endphp
ID
Faculty
Department
Title
Investigator
Application No
Type
Date Of Submission
Date Of Filling
Status
Actions