@extends('layouts.admin-main') @section('content')
@if (count($errors) > 0)
Whoops! There were some problems with your input.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- {!! Form::model($user, ['method' => 'PATCH','route' => ['users.update', $user->id]]) !!}
Name: {!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
Email: {!! Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control')) !!}
Password: {!! Form::password('password', array('placeholder' => 'Password','class' => 'form-control')) !!}
Confirm Password: {!! Form::password('confirm-password', array('placeholder' => 'Confirm Password','class' => 'form-control')) !!}
Role: {!! Form::select('roles[]', $roles,$userRole, array('class' => 'form-control')) !!}
Cancel
--}}
@method('put') {{ csrf_field() }}
{!! Form::select('roles[]', $roles, $userRole, ['class' => 'form-control']) !!}
{{ __('message.cancels') }}
@endsection @section('meta') {{ __('message.user') }} - {{ config('app.name', 'Dashboard') }} @endsection