lk.zachem.info/resources/views/auth/register.blade.php
2024-12-15 23:36:22 +08:00

114 lines
6.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layouts.guest')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Регистрация агента</div>
<div class="card-body">
<form method="POST" action="{{ route('register') }}">
@csrf
<div class="row mb-3">
<label for="name" class="col-md-4 col-form-label text-md-end">Полное имя</label>
<div class="col-md-6">
<input id="name" type="text"
class="form-control @error('name') is-invalid @enderror" name="name"
value="{{ old('name') }}" required autocomplete="name" placeholder="ФИО полностью"
autofocus>
@error('name')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="row mb-3">
<label for="email" class="col-md-4 col-form-label text-md-end">Номер телефона</label>
<div class="col-md-6">
<input id="phone" type="phone"
class="form-control @error('phone') is-invalid @enderror" name="phone"
value="{{ old('phone') }}" required autocomplete="phone"
placeholder="В формате: +7 999 999 99 99">
@error('phone')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="row mb-3">
<label for="email" class="col-md-4 col-form-label text-md-end">Электронная почта</label>
<div class="col-md-6">
<input id="email" type="email"
class="form-control @error('email') is-invalid @enderror" name="email"
value="{{ old('email') }}" required autocomplete="email">
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="border-top rounded mb-3">
<div class="row my-3">
<label for="type" class="col-md-4 col-form-label text-md-end">Юридический
статус</label>
<div class="col-md-6">
<select id="type" name="type"
class="form-control @error('type') is-invalid @enderror"
value="{{ old('type') }}" required>
<option value="SELFEMP">Самозанятый</option>
<option value="SOLEPROP">Индивидуальный предприниматель</option>
</select>
@error('type')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="row">
<label for="name" class="col-md-4 col-form-label text-md-end">ИНН</label>
<div class="col-md-6">
<input id="inn" type="text"
class="form-control @error('inn') is-invalid @enderror" name="inn"
value="{{ old('inn') }}" required autocomplete="inn" placeholder="12345678"
autofocus>
@error('inn')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
</div>
<div class="row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
Зарегистрироваться
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection