@php
$user = auth()->user();
$role = $user?->role;
$menuGroups = [
'Main' => [
['label'=>'Dashboard','icon'=>'home','route'=>'dashboard','active'=>['dashboard'],'roles'=>['owner','manager','cashier']],
['label'=>'Point of Sale (POS)','icon'=>'cart','route'=>'pos.index','active'=>['pos.*'],'roles'=>['owner','manager','cashier']],
],
'Operations' => [
['label'=>'Products','icon'=>'product','route'=>'products.index','active'=>['products.*'],'roles'=>['owner','manager','cashier']],
['label'=>'Categories','icon'=>'categories','route'=>'categories.index','active'=>['categories.*'],'roles'=>['owner','manager']],
['label'=>'Inventory / Stock','icon'=>'stock','route'=>'stock.index','active'=>['stock.index','stock.create','stock.store','stock.adjust','stock.adjust.store','stock.movements'],'roles'=>['owner','manager','cashier']],
['label'=>'Sales','icon'=>'sales','route'=>'sales.index','active'=>['sales.*'],'roles'=>['owner','manager','cashier']],
],
'Finance' => [
['label'=>'Expenses','icon'=>'expense','route'=>'expenses.index','active'=>['expenses.*'],'roles'=>['owner','manager','cashier']],
['label'=>'Reports','icon'=>'report','route'=>'reports.index','active'=>['reports.*'],'roles'=>['owner','manager']],
],
'Management' => [
['label'=>'Users','icon'=>'users','route'=>'users.index','active'=>['users.*'],'roles'=>['owner']],
],
];
$offlineScope = substr(hash_hmac('sha256', \App\Models\AppSetting::syncEpoch().'|'.$user->id, (string) config('app.key')), 0, 32);
$resetOfflineData = (bool) session('offline_business_reset', false);
@endphp
@yield('title', 'Dashboard') - MauzoTrack
@if($user?->language === 'sw')@endif
Still working?
You will be logged out in 60 seconds for security.
!
Browser account changed
Another tab changed the signed-in account. This tab is locked to prevent work under the wrong user.
To use Cashier and Owner at the same time, open one account in another Chrome profile or Incognito window.