@extends('backend.layout') @section('content') @if(Session::has('success'))
{{ Session::get('success') }} @php Session::forget('success'); @endphp
@endif @if(Session::has('errors'))
{{ 'Có lỗi xảy ra (' . implode(', ', $errors->all(':message')) . ')'}} @php Session::forget('errors'); @endphp
@endif

{{$title ?? ''}}

Trở về danh sách
{{ csrf_field() }}
@php $name = $data->name ?? ''; if (old('name') != '') { $name = old('name'); } @endphp @if ($errors->has('name')) {{ $errors->first('name') }} @endif
@php $email = $data->email ?? ''; if (old('email') != '') { $email = old('email'); } @endphp id) && $data->id != '' ? 'readonly' : ''}} /> @if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@php $status = $data->status ?? ''; if (old('status') != '') { $status = old('status'); } @endphp @if ($errors->has('status')) {{ $errors->first('status') }} @endif
@php $account_type = $data->account_type ?? ''; if (old('account_type') != '') { $account_type = old('account_type'); } @endphp @if ($errors->has('account_type')) {{ $errors->first('account_type') }} @endif
@if (isset($data->id) && $data->id != '')

@foreach ($role_data as $role_item)
id, $user_role) ? 'checked' : ''}} >
@endforeach
@endif
@endsection