16 lines
569 B
PHP
16 lines
569 B
PHP
<a href="{{ route('expenses.edit', $data->id) }}" class="btn btn-info btn-sm">
|
|
<i class="bi bi-pencil"></i>
|
|
</a>
|
|
<button id="delete" class="btn btn-danger btn-sm" onclick="
|
|
event.preventDefault();
|
|
if (confirm('Are you sure? It will delete the data permanently!')) {
|
|
document.getElementById('destroy{{ $data->id }}').submit();
|
|
}
|
|
">
|
|
<i class="bi bi-trash"></i>
|
|
<form id="destroy{{ $data->id }}" class="d-none" action="{{ route('expenses.destroy', $data->id) }}" method="POST">
|
|
@csrf
|
|
@method('delete')
|
|
</form>
|
|
</button>
|