added crud data master region & cabang
This commit is contained in:
@@ -54,10 +54,10 @@
|
||||
<td>{{ $rayon->code }}</td>
|
||||
<td>{{ $rayon->name }}</td>
|
||||
<td>
|
||||
@if (auth()->user()->can('admin.edit'))
|
||||
@if (auth()->user()->can('rayon.edit'))
|
||||
<a class="btn btn-success btn-sm text-white" href="{{ route('admin.rayon.edit', $rayon->id) }}">Edit</a>
|
||||
@endif
|
||||
@if (auth()->user()->can('admin.delete'))
|
||||
@if (auth()->user()->can('rayon.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-{{ $rayon->id }}').submit(); }">
|
||||
{{ __('Delete') }}
|
||||
|
||||
Reference in New Issue
Block a user