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
Publisher
All Publishers
Bloomsbury Publishing
Scholastic India
Penguin Random House
@php
use Illuminate\Support\Str;
$labels = [
'Title',
'Author',
'Publisher',
'Date of Publication',
'ISSN/eISSN number',
'Department',
];
$columns = [];
foreach ($labels as $i => $label) {
$columns[] = [
'label' => $label,
'id' => 'column-' . Str::slug($label, '-'),
'value' => $i + 2,
'checked' => true,
];
}
@endphp
ID
Title
Author
Publisher
Date of Publication
ISSN/eISSN number
Department
Actions