@extends('layout.admin') @section('head') @extends('layout.header') @section('header_title', 'User') @endsection @section('content') @php $usersPageJson = $userData->map(function ($row) { return [ 'idUser' => $row->idUser, 'Name' => $row->Name, 'email' => $row->email, 'TP' => $row->TP, 'Status' => $row->Status == '1' || $row->Status === 1, 'require_otp' => (int) ($row->require_otp ?? 1), ]; })->values(); @endphp

Users

@if (session()->has('error'))
{{ session('error') }}
@endif @if (session()->has('success'))
{{ session('success') }}
@endif

Select an admin user on the left to edit details, or add a new user.

Admin users

@forelse ($userData as $item) @php $initial = \Illuminate\Support\Str::upper(\Illuminate\Support\Str::substr($item->Name ?: 'U', 0, 1)); $isActive = $item->Status == '1' || $item->Status === 1; @endphp @empty

No users yet. Use Add user to create one.

@endforelse

User details

Select a user from the list to view and update their profile.

?

When off, this user can open the dashboard immediately after password (trusted devices only).
@endsection @section('script') @endsection