All pages updated with all features including filters

This commit is contained in:
tanmaychinchore
2025-10-08 20:08:52 +05:30
parent e07ac3f604
commit 8fe0ef8112
20 changed files with 3194 additions and 175 deletions

View File

@@ -18,12 +18,22 @@
<div class="col-md-4">
<div class="input-group">
<span class="input-group-text bg-light">Department</span>
<select id="department-filter" class="form-select">
<option value="">All Departments</option>
@foreach($departments as $department)
<option value="{{ $department->id }}">{{ $department->name }}</option>
@endforeach
</select>
@if(auth()->user()->role_id == 1)
{{-- Admin: can choose any department --}}
<select id="department-filter" class="form-select">
<option value="">All Departments</option>
@foreach($departments as $department)
<option value="{{ $department->id }}">{{ $department->name }}</option>
@endforeach
</select>
@else
{{-- Coordinator/Faculty: department is fixed --}}
<select id="department-filter" class="form-select" disabled>
<option value="{{ auth()->user()->department_id }}">
{{ auth()->user()->department->name }}
</option>
</select>
@endif
</div>
</div>
@@ -237,7 +247,10 @@
'<input type="checkbox" disabled>';
}
},
{ targets: '_all', className: 'text-center wrap-text' },
{
targets: '_all',
className: 'text-center wrap-text'
},
{
targets: 13,
render: function(data, type, row) {
@@ -471,6 +484,9 @@
toggleColumnVisibility();
});
// Ensure "Actions" column is always visible
$('#column-actions').prop('disabled', true);
// Select all columns button
$('#select-all-columns').click(function() {
$('.column-checkbox').prop('checked', true).trigger('change');
@@ -589,6 +605,7 @@
max-height: 400px;
overflow-y: auto;
}
/* Ensure the table container is responsive */
.table-responsive {
overflow-x: auto;