Roman_applicant-site/resources/views/users/edit.blade.php

55 lines
1.6 KiB
PHP
Raw Permalink Normal View History

2024-01-19 19:17:08 +03:00
@extends('layouts.admin-layout')
@section('content')
2024-01-12 16:42:16 +03:00
2024-01-19 19:17:08 +03:00
@auth()
<div>
<h1 class=""> Изменить Администратора</h1>
<br>
<br>
{{ Form::open(['url' => route('users.update', $user), 'method' => 'PATCH', 'class' => '']) }}
<div class="col-4">
2024-01-12 16:42:16 +03:00
<div>
{{ Form::label('name', 'Логин') }}
</div>
<div class="mt-2">
2024-01-19 19:17:08 +03:00
{{ Form::text('name', $user->name, ['class' => 'form-control']) }}
2024-01-12 16:42:16 +03:00
</div>
<div>
@if ($errors->any())
{{ $errors->first('name') }}
@endif
</div>
<div>
{{ Form::label('email', 'электронная почта') }}
</div>
<div class="mt-2">
2024-01-19 19:17:08 +03:00
{{ Form::text('email', $user->email, ['class' => 'form-control']) }}
2024-01-12 16:42:16 +03:00
</div>
<div>
@if ($errors->any())
{{ $errors->first('email') }}
@endif
</div>
<div>
{{ Form::label('password', 'Пароль') }}
</div>
<div class="mt-2">
2024-01-19 19:17:08 +03:00
{{ Form::text('password', '', ['class' => 'form-control']) }}
2024-01-12 16:42:16 +03:00
</div>
<div>
@if ($errors->any())
{{ $errors->first('password') }}
@endif
</div>
<div class="mt-4">
2024-01-19 19:17:08 +03:00
{{ Form::submit('изменить', ['class' => 'btn btn-primary']) }}
2024-01-12 16:42:16 +03:00
</div>
</div>
{{ Form::close() }}
</div>
@endauth
2024-01-19 19:17:08 +03:00
@endsection