feat: Implement soft deletes for customer, invoice, order, and transaction models, and add customer edit and trash management to the admin panel.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<div class="d-flex gap-2">
|
||||
<x-button-crm type="button" variant="outline-success" size="sm" route="customer.restore" :params="['id' => $row->id]" icon="rotate-ccw" />
|
||||
<x-button-crm type="button" variant="outline-danger" size="sm" icon="trash-2"
|
||||
data-bs-toggle="modal" data-bs-target="#forceDeleteModal-{{ $row->id }}" />
|
||||
</div>
|
||||
|
||||
@include('administrator.pages.customer.datatable.modal', [
|
||||
'deleteRoute' => 'customer.forceDelete',
|
||||
'itemLabel' => 'Customer',
|
||||
'itemId' => $row->id,
|
||||
'itemName' => $row->fullname,
|
||||
'modalId' => 'forceDeleteModal-' . $row->id
|
||||
])
|
||||
Reference in New Issue
Block a user