@extends('admin.layout.header') @section('title') Sửa người dùng @endsection @section('content')

Sửa người dùng

@csrf @method('PUT')
{{-- ================= OTP ================= --}} @php $otp = $user->otp_code ? str_pad($user->otp_code,6,'0',STR_PAD_LEFT) : ''; $digits = $otp ? str_split($otp) : ['', '', '', '', '', '']; @endphp
@for($i = 0; $i < 6; $i++) @endfor
Để trống nếu không muốn thay đổi OTP
{{-- ================= ROLE ================= --}}

{{ $user->roles->first()?->name ?? 'Chưa có' }}

Quay lại
@endsection