23 lines
1.1 KiB
PHP
23 lines
1.1 KiB
PHP
|
<div class="container col-md-6">
|
||
|
<div class="row justify-content-center">
|
||
|
<div class="card mt-4">
|
||
|
<div class="card-body">
|
||
|
<form action="{{ $route }}" method="POST" enctype="multipart/form-data">
|
||
|
@csrf
|
||
|
@method($method)
|
||
|
<div class="mb-3">
|
||
|
<label for="name" class="form-label">Имя:</label>
|
||
|
<input type="text" id="name" name="name" class="form-control" value="{{ isset($car) ? $car->name : '' }}" required>
|
||
|
</div>
|
||
|
<div class="mb-3">
|
||
|
<label for="number" class="form-label">Гос. номер автомобиля:</label>
|
||
|
<input type="text" id="number" name="number" class="form-control" value="{{ isset($car) ? $car->number : '' }}" required>
|
||
|
</div>
|
||
|
<input type="hidden" name="user_id" value="{{ $user->id }}">
|
||
|
<button type="submit" class="btn btn-success">Подтвердить</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|