added crud data master region & cabang

This commit is contained in:
Jagad R R
2025-01-08 14:12:45 +07:00
parent 1027b0dfb4
commit 314fefd52d
27 changed files with 983 additions and 15 deletions
@@ -54,10 +54,10 @@
<td>{{ $cost->code }}</td>
<td>{{ $cost->name }}</td>
<td>
@if (auth()->user()->can('admin.edit'))
@if (auth()->user()->can('cost.edit'))
<a class="btn btn-success btn-sm text-white" href="{{ route('admin.cost.edit', $cost->id) }}">Edit</a>
@endif
@if (auth()->user()->can('admin.delete'))
@if (auth()->user()->can('cost.delete'))
<a class="btn btn-danger text-white btn-sm" href="javascript:void(0);"
onclick="event.preventDefault(); if(confirm('Are you sure you want to delete?')) { document.getElementById('delete-form-{{ $cost->id }}').submit(); }">
{{ __('Delete') }}