@extends('layouts.school') @section('title', 'User Management') @section('header', 'User Management') @section('content') @if(session('success'))
| Name | Role | Status | Actions | |
|---|---|---|---|---|
|
{{ $u->initials }}
{{ $u->name }}
|
{{ $u->email }} | @php $rColors = ['school_admin' => 'bg-purple-50 text-purple-700', 'teacher' => 'bg-blue-50 text-blue-700', 'accountant' => 'bg-green-50 text-green-700', 'staff' => 'bg-gray-100 text-gray-700']; @endphp {{ $u->role?->label() ?? $u->role }} | {{ $u->is_active ? 'Active' : 'Inactive' }} |
@if($u->id !== auth()->guard('school')->id())
|
@else
You
@endif
|
| No users found. | ||||