53 lines
3.5 KiB
PHP
53 lines
3.5 KiB
PHP
<div class="container col-md-5">
|
|
<div class="row justify-content-center">
|
|
<div class="card mt-4">
|
|
<div class="card-body">
|
|
<form action="{{ $route }}" method="POST">
|
|
@csrf
|
|
@method($method)
|
|
<div class="mb-3">
|
|
<x-input-label for="user_id" :value="__('Водитель')" />
|
|
<x-select-driver :selectedDriver="isset($delivery) ? $delivery->user->id : null" name="user_id" id="user_id" class="block mt-1 w-full" />
|
|
</div>
|
|
<div class="mb-3">
|
|
<x-input-label for="status" :value="__('Статус')" />
|
|
<x-select-status :selectedStatus="isset($delivery) ? $delivery->status : null" name="status" id="status" class="block mt-1 w-full" />
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="address" class="form-label">Адрес доставки:</label>
|
|
<input type="text" id="address" name="address" class="form-control" value="{{ isset($delivery) ? $delivery->address : '' }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="sender" class="form-label">ФИО отправителя:</label>
|
|
<input type="text" id="sender" name="sender" class="form-control" value="{{ isset($delivery) ? $delivery->sender : '' }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="sender_phone" class="form-label">Телефон отправителя:</label>
|
|
<input type="text" id="sender_phone" name="sender_phone" class="form-control" value="{{ isset($delivery) ? $delivery->sender_phone : '' }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="sending_date" class="form-label">Дата отправки:</label>
|
|
<input type="date" id="sending_date" name="sending_date" class="form-control" value="{{ isset($delivery) ? $delivery->sending_date : '' }}">
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="receiver" class="form-label">ФИО получателя:</label>
|
|
<input type="text" id="receiver" name="receiver" class="form-control" value="{{ isset($delivery) ? $delivery->receiver : '' }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="receiver_phone" class="form-label">Телефон получателя:</label>
|
|
<input type="text" id="receiver_phone" name="receiver_phone" class="form-control" value="{{ isset($delivery) ? $delivery->receiver_phone : '' }}" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="delivery_date" class="form-label">Дата получения:</label>
|
|
<input type="date" id="delivery_date" name="delivery_date" class="form-control" value="{{ isset($delivery) ? $delivery->delivery_date : '' }}">
|
|
</div>
|
|
<input type="hidden" name="warehouse_id" value="{{ auth()->user()->warehouse_id }}">
|
|
<div>
|
|
<button type="submit" class="btn btn-success">Подтвердить</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|