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

Изменить Администратора



{{ Form::open(['url' => route('users.update', $user), 'method' => 'PATCH', 'class' => '']) }}
{{ Form::label('name', 'Логин') }}
{{ Form::text('name', $user->name, ['class' => 'form-control']) }}
@if ($errors->any()) {{ $errors->first('name') }} @endif
{{ Form::label('email', 'электронная почта') }}
{{ Form::text('email', $user->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