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