created master data: rayon, cost centre, kategori

This commit is contained in:
Jagad R R
2024-12-12 18:18:26 +07:00
parent 8cf94b5a5e
commit 095c2169c5
38 changed files with 1249 additions and 17 deletions
@@ -4,7 +4,6 @@
{{ $pageInfo['title'] }}
@endsection
@section('admin-content')
<section class="content-header">
<div class="container-fluid">
@@ -63,10 +62,23 @@
@endforeach
</td>
<td>
@if (auth::user()->can('admin.edit'))
@if (auth()->user()->can('admin.edit'))
<a class="btn btn-success btn-sm text-white"
href="{{ route('admin.roles.edit', $role->id) }}">Edit</a>
@endif
@if (auth()->user()->can('admin.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-{{ $role->id }}').submit(); }">
{{ __('Delete') }}
</a>
<form id="delete-form-{{ $role->id }}"
action="{{ route('admin.roles.destroy', $role->id) }}"
method="POST" style="display: none;">
@method('DELETE')
@csrf
</form>
@endif
<a class="btn btn-primary btn-sm text-white"
href="{{ route('auth.menurole.index', $role->id) }}">Assign
Menus</a>