diff --git a/resources/views/layouts/partials/sidebarMenu.blade.php b/resources/views/layouts/partials/sidebarMenu.blade.php index 9c1fb03..57fd2ad 100755 --- a/resources/views/layouts/partials/sidebarMenu.blade.php +++ b/resources/views/layouts/partials/sidebarMenu.blade.php @@ -44,17 +44,21 @@ @endcan - {{-- Section Header --}} -
- - Manajemen Pengguna + {{-- Section Header - Only show if user has access to any submenu --}} + @if(Gate::check('view', $menus['user.index']) || Gate::check('view', $menus['roleprivileges.index'])) +
+
+ + Manajemen Pengguna +
+ @endif {{-- Submenu Items --}} @can('view', $menus['user.index'])
  • - + Pengguna
  • @@ -63,23 +67,27 @@ @can('view', $menus['roleprivileges.index'])
  • - + Role & Privileges
  • @endcan - {{-- Section Header --}} -
    - - Manajemen Transaksi + {{-- Section Header - Only show if user has access to any submenu --}} + @if(Gate::check('view', $menus['work.index']) || Gate::check('view', $menus['category.index']) || Gate::check('view', $menus['dealer.index'])) +
    +
    + + Manajemen Transaksi +
    + @endif {{-- Submenu Items --}} @can('view', $menus['work.index'])
  • - + Pekerjaan
  • @@ -88,7 +96,7 @@ @can('view', $menus['category.index'])
  • - + Kategori Pekerjaan
  • @@ -97,23 +105,27 @@ @can('view', $menus['dealer.index'])
  • - + Dealer
  • @endcan - {{-- Section Header --}} -
    - - Manajemen Gudang + {{-- Section Header - Only show if user has access to any submenu --}} + @if(Gate::check('view', $menus['products.index']) || Gate::check('view', $menus['product_categories.index']) || Gate::check('view', $menus['mutations.index']) || Gate::check('view', $menus['opnames.index']) || Gate::check('view', $menus['stock-audit.index'])) +
    +
    + + Manajemen Gudang +
    + @endif {{-- Submenu Items --}} @can('view', $menus['products.index'])
  • - + Produk
  • @@ -122,7 +134,7 @@ @can('view', $menus['product_categories.index'])
  • - + Kategori Produk
  • @@ -131,7 +143,7 @@ @can('view', $menus['mutations.index'])
  • - + Mutasi Produk
  • @@ -140,7 +152,7 @@ @can('view', $menus['opnames.index'])
  • - + Stock Opname
  • @@ -149,17 +161,21 @@ @can('view', $menus['stock-audit.index'])
  • - + Histori Stock
  • @endcan - {{-- Section Header --}} -
    - - Laporan + {{-- Section Header - Only show if user has access to any submenu --}} + @if(Gate::check('view', $menus['report.transaction_sa']) || Gate::check('view', $menus['report.transaction']) || Gate::check('view', $menus['report.transaction_dealer']) || Gate::check('view', $menus['work.index'])) +
    +
    + + Laporan +
    + @endif {{-- Submenu Items --}} @can('view', $menus['report.transaction_sa']) @@ -174,7 +190,7 @@ @can('view', $menus['report.transaction'])
  • - + Pekerjaan
  • @@ -183,7 +199,7 @@ @can('view', $menus['report.transaction_dealer'])
  • - + Dealer
  • @@ -192,7 +208,7 @@ @can('view', $menus['work.index'])
  • - + Stok Produk
  • @@ -201,7 +217,7 @@ @can('view', $menus['work.index'])
  • - + Teknisi