applicant-site/resources/views/users/create.blade.php

54 lines
1.6 KiB
PHP
Raw Normal View History

2024-01-19 19:17:08 +03:00
@extends('layouts.admin-layout')
@section('content')
2024-01-12 09:56:06 +03:00
@auth()
2024-01-19 19:17:08 +03:00
<div class="">
<h1 class=""> Создать администратора</h1>
2024-01-12 09:56:06 +03:00
2024-01-19 19:17:08 +03:00
{{ Form::open(['url' => route('users.store'), 'method' => 'POST', 'class' => '']) }}
<div class="col-4">
2024-01-12 09:56:06 +03:00
<div>
{{ Form::label('name', 'Логин') }}
</div>
<div class="mt-2">
2024-01-19 19:17:08 +03:00
{{ Form::text('name', '', ['class' => 'form-control']) }}
2024-01-12 09:56:06 +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', '', ['class' => 'form-control']) }}
2024-01-12 09:56:06 +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 09:56:06 +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 09:56:06 +03:00
</div>
</div>
{{ Form::close() }}
</div>
@endauth
2024-01-19 19:17:08 +03:00
@endsection