{{-- @extends('layouts.app') --}} @extends('backend.layouts_backend.master2') @section('title') Edit User @endsection @section('content') {{-- title --}}

Edit User

@if (Auth::user()->can('user-create')) @endif @if (Auth::user()->can('user-list')) @endif
{{-- end title --}} {!! Form::model($user, ['method' => 'PATCH', 'route' => ['users.update', $user->id]]) !!} {{ csrf_field() }}
{!! Form::text('first_name', $user->first_name ?? '', ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('first_name')) @endif
{!! Form::text('last_name', $user->last_name ?? '', ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('last_name')) {{-- {{ $errors->first('last_name') }} --}} @endif
@if ($errors->has('username')) {{-- {{ $errors->first('username') }} --}} @endif
{!! Form::text('phone', $user->phone ?? '', ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('phone')) @endif
{!! Form::text('email', $user->email ?? '', ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('email')) {{-- {{ $errors->first('email') }} --}} @endif
{{--
@if ($errors->has('photo')) @endif

--}} {{--
--}}
{{--
--}}
@if ($errors->has('pin')) @endif
{{-- user category --}} {{--

--}}
{!! Form::password('password', ['placeholder' => '*********', 'class' => 'form-control']) !!}

{!! Form::password('confirm-password', ['placeholder' => '*********', 'class' => 'form-control']) !!}

{!! Form::select('roles[]', $roles, $userRole, ['class' => 'form-control', 'multiple']) !!}

{!! Form::close() !!} @endsection @section('extra_scripts') {{-- handline select2 --}} @endsection