You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.5 KiB
PHTML
32 lines
1.5 KiB
PHTML
<div class="modal modal fade" id="deleteCustomerModal" tabindex="-1" aria-labelledby="deleteCustomerModalLabel"
|
|
aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h1 class="modal-title fs-5" id="deleteCustomerModalLabel">Delete Customer</h1>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<form action="{{route('customers.requestDestroy')}}" method="post">
|
|
@csrf
|
|
<div class="modal-body">
|
|
@if(sizeof($customers) !== 0)
|
|
<select name="id" id="id" class="form-select">
|
|
@foreach($customers as $customer)
|
|
<option value="{{ $customer->id }}"> {{ $customer->company_name}}</option>
|
|
@endforeach
|
|
</select>
|
|
@else
|
|
There are no customers to delete.
|
|
@endif
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
|
|
@if (sizeof($customers) !== 0)
|
|
<button type="submit" class="btn btn-danger">Delete customer</button>
|
|
@endif
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|