Member Relief Fund Management
{{-- ====================================================== GET ROLE / SEAT ====================================================== --}} @php $seat = Session::get('selected_seat'); if ($seat && isset($seat->role_id)) { $roleId = $seat->role_id; } else { $roleId = auth()->id() == 1 ? 1 : null; } $dashboardRoutes = [ 1 => 'admin.dashboard', 2 => 'registrar.dashboard', 3 => 'staff.jointregistrar.dashboard', 4 => 'hqstaff.dashboard', 5 => 'assistantregistrar.index', 6 => 'staff.unit_inspector.dashboard', 7 => 'secretary.index', ]; $dashboardRoute = $dashboardRoutes[$roleId] ?? null; $dashboardUrl = $dashboardRoute ? route($dashboardRoute) : 'javascript:void(0)'; @endphp {{-- ====================================================== DASHBOARD ====================================================== --}}
Dashboard
{{-- ====================================================== SUPER ADMIN: SEAT MANAGEMENT ====================================================== --}} @if (auth()->user()->user_type_id == 3) @php $seatManagementActive = request()->routeIs([ 'admin.seatmanagement.*', 'admin.users.*', 'admin.seatgroups*', 'admin.seatmanagement.permissions', ]); @endphp
Seat Management
@can('view users list by admin')
Users List
@endcan
Seat Groups
@can('view seat list')
Seat Allocation
@endcan
{{-- ====================================================== MASTER MANAGEMENT ====================================================== --}} @php $masterActive = request()->routeIs([ 'admin.hospitals*', 'admin.diseases*', 'admin.taluks*', 'master-management.societies*', 'assistantregistrar.societies*', 'admin.activity-logs*', ]); @endphp
Master Management
@can('view taluk list by admin')
Taluks
@endcan @can('view society list')
Society List
@endcan {{-- @can('view society list by assistant registrar')
Society (AR)
@endcan --}} @can('view hospital list by admin')
Hospitals
@endcan @can('group list by disease or accident type by admin')
Disease & Accidents
@endcan @can('view full audit logs by admin')
Activity Logs
@endcan
@endif @if (auth()->user()->user_type_id == 2) @php $seatManagementActive = request()->routeIs([ 'admin.seatmanagement.*', 'admin.users.*', 'admin.seatgroups*', 'admin.seatmanagement.permissions', ]); @endphp
Seat Management
@can('view seat list')
Seat Allocation
@endcan
@endif @if (auth()->user()->user_type_id == 2) @php $staffMasterActive = request()->routeIs(['assistantregistrar.societies*']); @endphp
Master Management
{{-- @can('view society list by assistant registrar')
Society (AR)
@endcan --}} @can('view society list')
Society List
@endcan
@endif @if (auth()->user()->user_type_id != 3) {{-- ====================================================== APPLICATIONS (dynamic for all roles) ====================================================== --}} @php $applicationsActive = request()->routeIs([ 'secretary.*', 'staff.unit_inspector.*', 'assistantregistrar.*', 'hqstaff.*', 'registrar.applications.applicationlist', 'application.final-lists', 'staff.jointregistrar.applications*', ]); // $reportsActive = request()->routeIs(['hqstaff.application_reports.*']); @endphp
Applications
{{-- Secretary --}} @can('view all applications by secretary')
Inbox
@endcan @can('view all applications forwarded by secretary')
Forwarded
@endcan @can('view pending fund disbursal by secretary')
Disbursal
@endcan {{-- Unit Inspector --}} @can('view all applications by unitinspector')
Inbox
@endcan @can('view all applications forwarded by unitinspector')
Forwarded
@endcan {{-- Assistant Registrar --}} @can('view all applications by assistantregistrar')
Inbox
@endcan @can('view all applications forwarded by assistantregistrar')
Forwarded
@endcan {{-- HQ Staff --}} @can('view all applications by hqstaff')
Inbox
@endcan @can('view all applications forwarded by hqstaff')
Forwarded
@endcan @can('creation of eligibility list and ineligibility list by hq staff')
Eligibility/Ineligibility List
@endcan @can('list of application lists for hq staff')
List of Verified List
@endcan @can('list of application lists for hq staff')
List of Ineligible List
@endcan @can('list of disbursement lists for hq staff and registrar')
List of Disbursement Lists
@endcan @can('create disbursement list by hqstaff')
Disbursement List Creation
@endcan {{-- Registrar --}} @can('view all applications by registrar')
Application List
@endcan {{-- Eligible List --}} @can('view eligible application list by registrar')
Verified List
@endcan {{-- Eligible List --}} @can('view disbursement list by registrar')
Disbursment List
@endcan {{-- Joint Registrar --}} @can('view all applications by jointregistrar')
Applications
@endcan
{{-- ====================================================== COMMON REPORTS (ALL USERS) ====================================================== --}} @php $commonReportsActive = request()->routeIs([ 'staff.reports.*', // HQ staff 'hqstaff.reports.eligible_applications', 'hqstaff.reports.ineligible_applications', 'hqstaff.reports.consolidated_applications', // Registrar 'registrar.reports.eligible_applications', 'registrar.reports.ineligible_applications', 'registrar.reports.eligible_consolidated_applications', ]); @endphp
Reports
{{-- Application Status List --}} @can('view lists and reports in own jurisdiction only')
Application Status List
@endcan @php $hqReportsActive = request()->routeIs([ 'hqstaff.reports.eligible_applications', 'hqstaff.reports.ineligible_applications', 'hqstaff.reports.consolidated_applications', ]); @endphp {{-- Eligible Applications --}} @can('view eligibility list reports by hq staff')
Eligible List
@endcan {{-- Ineligible Applications --}} @can('view ineligibility list reports by hq staff')
Ineligible List
@endcan {{-- Consolidated Applications --}} @can('view consolidated list reports by hq staff')
Consolidated List
@endcan {{-- @can('view eligible application list by registrar') @php $registrarReportsActive = request()->routeIs([ 'registrar.reports.eligible_applications', 'registrar.reports.ineligible_applications', 'registrar.reports.eligible_consolidated_applications', ]); @endphp
Eligible List
Ineligible List
Consolidated List
@endcan --}} {{-- Eligible Applications --}} @can('view eligibility list reports by registrar')
Eligible List
@endcan {{-- Ineligible Applications --}} @can('view ineligibility list reports by registrar')
Ineligible List
@endcan {{-- Consolidated Applications --}} @can('view consolidated list reports by registrar')
Consolidated List
@endcan
@endif {{-- ====================================================== JOINT REGISTRAR USERS LIST ====================================================== --}} @can('view users list by jointregistrar')
Users List
@endcan {{-- ====================================================== JR ACTIVITY LOGS ====================================================== --}} @can('view activitylog by jointregistrar')
Activity Logs
View Logs
@endcan {{-- ====================================================== SYSTEM SETTINGS (Super Admin) ====================================================== --}} @if (auth()->user()->user_type_id == 3) @can('configure relief amount range by admin')
System Settings
Configurations
@endcan @can('view application reports by admin')
Reports
Application Report
@endcan @endif
@if (auth()->check() && auth()->user()->user_type_id != 3 && session()->has('selected_seat'))
{{ session('selected_seat')->name }}
@endif
@if (Session::has('access_error'))
{{ Session::get('access_error') }}
@endif
{{ strtoupper(auth()->user()->name[0]) }}
{{-- =============================== STAFF SEAT SWITCHER ONLY ================================ --}} @if (auth()->check() && auth()->user()->user_type_id == 2 && session()->has('seats') && session()->has('selected_seat')) @php $activeSeatId = session('selected_seat')->id; @endphp @foreach (session('seats') as $seat)
{{ $seat->name }}
({{ $seat->office->name }})
@endforeach
@endif {{-- =============================== COMMON MENU ================================ --}}
Log out
@if (Session::has('error'))
{{ Session::get('error') }}
@endif @yield('content')
Loading...Please wait
@stack('scripts')