update staff permissions

This commit is contained in:
Abhishek Mali
2026-02-27 12:59:20 +05:30
parent e188780329
commit 599023166a
5 changed files with 14 additions and 10 deletions

View File

@@ -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.
*/ */

View File

@@ -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',

View File

@@ -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

View File

@@ -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

View File

@@ -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');