SUBD_Transport_Company/resources/views/cars/form.blade.php

23 lines
1.1 KiB
PHP
Raw Normal View History

2024-01-16 15:14:13 +04:00
<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>