@extends('layouts.app') @section('content')
Total Sub-Admins
Active
Your Access
Last Added
| # | Photo | Name | Phone | Gender | Role | Actions | |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | @if($subadmin->photo) | {{ $subadmin->first_name }} {{ $subadmin->last_name }}
                                @if($subadmin->nationality) {{ $subadmin->nationality }} @endif | {{ $subadmin->email }} | {{ $subadmin->phone }} | @if($subadmin->gender == 'Male') Male @elseif($subadmin->gender == 'Female') Female @else {{ $subadmin->gender }} @endif | @php $roleInfo = [ 'academic' => ['icon' => 'bi-book', 'color' => 'info', 'text' => 'Academic'], 'finance' => ['icon' => 'bi-cash', 'color' => 'success', 'text' => 'Finance'], 'operations' => ['icon' => 'bi-gear', 'color' => 'warning', 'text' => 'Operations'], 'limited' => ['icon' => 'bi-lock', 'color' => 'secondary', 'text' => 'Limited'], ]; $role = $roleInfo[$subadmin->role] ?? ['icon' => 'bi-person', 'color' => 'secondary', 'text' => 'Sub-Admin']; @endphp {{ $role['text'] }} | |
| No Sub-Admins Found@if(auth()->user()->role == 'admin') Add First Sub-Admin @endif | |||||||
Sub-admins help manage day-to-day operations of the madrasa. They have limited permissions compared to the main administrator and cannot access critical system settings. Different roles have different levels of access to various modules.