@extends('layouts.admin_layout') @section('content') @auth() @can('create', Auth::user())

Создать администратора

{{ Form::open(['url' => route('users.store'), 'method' => 'POST', 'class' => '']) }}
{{ Form::label('name', 'Логин') }}
{{ Form::text('name', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('email', 'электронная почта') }}
{{ Form::text('email', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('email') }} @endif
{{ Form::label('password', 'Пароль') }}
{{ Form::text('password', '', ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('password') }} @endif
{{ Form::submit('создать', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@endcan @endauth @endsection