@if (auth()->user()->hasRole('registrar'))
@php
$constraintRoutes = [
'reports.payments',
'reports.revenues',
];
$currentRoute = Route::currentRouteName();
$selectedConstraint = $filters->constraint_id ?? 0;
$constraintOptions = [
1 => __('student.registered'),
2 => __('student.partially-registered'),
3 => __('student.un-registered'),
];
@endphp
@if (in_array($currentRoute, $constraintRoutes))
@endif
@endif
@if (auth()->user()->hasrole('financial') || auth()->user()->hasrole('admin'))
@if (Route::current()->getName() == 'reports.payments' || Route::current()->getName() == 'reports.revenues')
@endif
@endif