@extends('layouts.admin') @section('content')
{{ trans('global.edit') }} {{ trans('cruds.user.title_singular') }}
{{-- @dd(\url()->previous()); --}} {{-- @if(\url()->previous() == route("admin.agent"))
id]) }}" enctype="multipart/form-data"> @else --}} id]) }}" enctype="multipart/form-data"> {{-- @endif --}} @method('PUT') @csrf
@if($errors->has('name')) {{ $errors->first('name') }} @endif {{ trans('cruds.user.fields.name_helper') }}
@if($errors->has('email')) {{ $errors->first('email') }} @endif {{ trans('cruds.user.fields.email_helper') }}
@if($errors->has('password')) {{ $errors->first('password') }} @endif {{ trans('cruds.user.fields.password_helper') }}
{{ trans('global.select_all') }} {{ trans('global.deselect_all') }}
@if($errors->has('roles')) {{ $errors->first('roles') }} @endif {{ trans('cruds.user.fields.roles_helper') }}
is_approved || old('is_approved', 0) === 1 ? 'checked' : '' }}>
@if($errors->has('is_approved')) {{ $errors->first('is_approved') }} @endif
@endsection