@extends('layouts.app', [ 'class' => '', 'elementActive' => 'users' ]) @section('content')

@if (isset($user->id)) User [Edit] #{{ $user->id }} @else New User @endif

@isset($user) @method('PUT') @endisset @csrf @if ($message = Session::get('success'))
{{ $message }}
@endif {{--@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif --}}
{!! $errors->first('name', '

:message

') !!}
{!! $errors->first('nrc', '

:message

') !!}
@if(isset($user))
@if($user->front_nrc_photo)
your image
@endif @if($user->back_nrc_photo)
your image
@endif

@endif
{!! $errors->first('phone', '

:message

') !!}
{!! $errors->first('role', '

:message

') !!}
{!! $errors->first('email', '

:message

') !!}
{!! $errors->first('username', '

:message

') !!}
@if(!isset($user))
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
@endif
Cancel
@stop @push('scripts') @endpush