update staff permissions
This commit is contained in:
@@ -20,8 +20,6 @@ class ChatMessage extends Model
|
||||
'read_by_user',
|
||||
'client_id',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* The ticket this message belongs to.
|
||||
*/
|
||||
|
||||
@@ -25,6 +25,12 @@ class PermissionSeeder extends Seeder
|
||||
// EXTRA (ORDERS)
|
||||
'orders.view', // you added this separately
|
||||
|
||||
// CONTAINER
|
||||
'container.view',
|
||||
'container.create',
|
||||
'container.update',
|
||||
'container.delete',
|
||||
|
||||
// SHIPMENT
|
||||
'shipment.view',
|
||||
'shipment.create',
|
||||
|
||||
@@ -537,7 +537,7 @@
|
||||
Manage all containers, track status, and view entries in real-time
|
||||
</div>
|
||||
</div>
|
||||
@can('containers.create')
|
||||
@can('container.create')
|
||||
<a href="{{ route('containers.create') }}" class="add-container-btn">
|
||||
<i class="fas fa-plus-circle"></i>
|
||||
Add New Container
|
||||
@@ -655,7 +655,7 @@
|
||||
</span>
|
||||
|
||||
|
||||
@can('containers.view')
|
||||
@can('container.update')
|
||||
<a href="{{ route('containers.show', $container->id) }}" class="action-btn view-btn">
|
||||
<i class="fas fa-eye"></i> View
|
||||
</a>
|
||||
@@ -678,7 +678,7 @@
|
||||
|
||||
|
||||
|
||||
@can('containers.delete')
|
||||
@can('container.delete')
|
||||
<form action="{{ route('containers.destroy', $container->id) }}" method="POST"
|
||||
onsubmit="return confirm('Are you sure you want to delete this container and all its entries?');">
|
||||
@csrf
|
||||
|
||||
@@ -273,8 +273,8 @@ header .bi-bell .badge {
|
||||
|
||||
|
||||
|
||||
{{-- Container – NEW MENU --}}
|
||||
@can('containers.view')
|
||||
{{-- Container NEW MENU --}}
|
||||
@can('container.view')
|
||||
<a href="{{ route('containers.index') }}" class="{{ request()->routeIs('containers.*') ? 'active' : '' }}">
|
||||
<i class="fa-solid fa-box"></i> Container
|
||||
</a>
|
||||
|
||||
@@ -20,10 +20,9 @@ use App\Http\Controllers\ContainerController;
|
||||
// Public Front Page
|
||||
// ---------------------------
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
return redirect()->route('admin.login');
|
||||
});
|
||||
|
||||
|
||||
// ==========================================
|
||||
// BROADCASTING AUTH (FOR ADMIN SESSION)
|
||||
// ==========================================
|
||||
@@ -385,3 +384,4 @@ Route::post('/admin/broadcasting/auth', function () {
|
||||
|
||||
Route::get('/admin/invoices/{invoice}/download', [InvoiceController::class, 'download'])
|
||||
->name('admin.invoices.download');
|
||||
|
||||
Reference in New Issue
Block a user