|
|
|
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
|
|
|
|
@if (auth()->user()->role_id == 'D961AD96-211B-4F68-9FF2-111111111111')
|
|
|
|
<!-- Sidebar - Brand -->
|
|
|
|
<a class="sidebar-brand d-flex align-items-center justify-content-center"
|
|
|
|
href="{{ route('dashboard.home.admin') }}">
|
|
|
|
<div class="sidebar-brand-icon">
|
|
|
|
{{-- <i class="fas fa-laugh-wink"></i> --}}
|
|
|
|
<img src="{{ asset('assets/img/logo_istw.png') }}" alt="Tachometer Icon" width="70" height="70"
|
|
|
|
class="mb-2 mt-2">
|
|
|
|
</div>
|
|
|
|
<div class="sidebar-brand-text mx-2 mr-3">SIOPAS</div>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Divider -->
|
|
|
|
<hr class="sidebar-divider my-0">
|
|
|
|
|
|
|
|
<!-- Nav Item - Dashboard -->
|
|
|
|
<li class="nav-item {{ $active == 'menu-admin' ? 'active' : '' }}">
|
|
|
|
<a class="nav-link" href="{{ route('dashboard.home.admin') }}">
|
|
|
|
<i class="fas fa-fw fa-tachometer-alt"></i>
|
|
|
|
<span>Dashboard</span></a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- Divider -->
|
|
|
|
<hr class="sidebar-divider">
|
|
|
|
|
|
|
|
<li class="nav-item {{ $active == 'menu-peminjaman' ? 'active' : '' }}">
|
|
|
|
<a class="nav-link" href="{{ route('dashboard.peminjaman.index') }}">
|
|
|
|
<i class="fas fa-fw fa-upload"></i>
|
|
|
|
<span>Peminjaman Gunawan</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {{ $active == 'menu-pengembalian' ? 'active' : '' }}">
|
|
|
|
<a class="nav-link" href="{{ route('dashboard.pengembalian.index') }}">
|
|
|
|
<i class="fas fa-fw fa-download"></i>
|
|
|
|
<span>Pengembalian</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {{ $active == 'menu-transfer' ? 'active' : '' }}">
|
|
|
|
<a class="nav-link" href="{{ route('dashboard.transfer.index') }}">
|
|
|
|
<i class="fas fa-fw fa-exchange-alt"></i>
|
|
|
|
<span>Transfer</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {{ $active == 'menu-disposal' ? 'active' : '' }}">
|
|
|
|
<a class="nav-link" href="{{ route('dashboard.disposal.index') }}">
|
|
|
|
<i class="fas fa-fw fa-trash"></i>
|
|
|
|
<span>Disposal</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- Divider -->
|
|
|
|
<hr class="sidebar-divider">
|
|
|
|
|
|
|
|
<!-- Heading -->
|
|
|
|
<div class="sidebar-heading">
|
|
|
|
Master Data
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@php
|
|
|
|
$isUserActive = in_array($active, ['menu-user', 'menu-role']);
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTwo"
|
|
|
|
aria-expanded="{{ $isUserActive ? 'true' : 'false' }}" aria-controls="collapseTwo">
|
|
|
|
<i class="fas fa-fw fa-user"></i>
|
|
|
|
<span>Manajemen User</span>
|
|
|
|
</a>
|
|
|
|
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
|
|
|
|
<div class="bg-white py-2 collapse-inner rounded">
|
|
|
|
<a class="collapse-item {{ $active == 'menu-user' ? 'active' : '' }}"
|
|
|
|
href="{{ route('dashboard.user.index') }}">User</a>
|
|
|
|
<a class="collapse-item {{ $active == 'menu-role' ? 'active' : '' }}"
|
|
|
|
href="{{ route('dashboard.role.index') }}">Role</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {{ $active == 'menu-customer' ? 'active' : '' }}">
|
|
|
|
<a class="nav-link" href="{{ route('dashboard.customer.index') }}">
|
|
|
|
<i class="fas fa-fw fa-users"></i>
|
|
|
|
<span>Customer</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@php
|
|
|
|
$isPetiActive = in_array($active, ['menu-user', 'menu-role']);
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsepeti"
|
|
|
|
aria-expanded="{{ $isPetiActive ? 'true' : 'false' }}" aria-controls="collapsepeti">
|
|
|
|
<i class="fas fa-fw fa-user"></i>
|
|
|
|
<span>Manajemen Peti</span>
|
|
|
|
</a>
|
|
|
|
<div id="collapsepeti" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
|
|
|
|
<div class="bg-white py-2 collapse-inner rounded">
|
|
|
|
<a class="collapse-item {{ $active == 'menu-typepeti' ? 'active' : '' }}"
|
|
|
|
href="{{ route('dashboard.typepeti.index') }}">Tipe Peti</a>
|
|
|
|
<a class="collapse-item {{ $active == 'menu-kondisipeti' ? 'active' : '' }}"
|
|
|
|
href="{{ route('dashboard.kondisipeti.index') }}">Kondisi
|
|
|
|
Peti</a>
|
|
|
|
<a class="collapse-item {{ $active == 'menu-peti' ? 'active' : '' }}"
|
|
|
|
href="{{ route('dashboard.peti.index') }}">Peti</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {{ $active == 'menu-warehouse' ? 'active' : '' }}">
|
|
|
|
<a class="nav-link" href="{{ route('dashboard.warehouse.index') }}">
|
|
|
|
<i class="fas fa-fw fa-table"></i>
|
|
|
|
<span>Warehouse</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsereport"
|
|
|
|
aria-expanded="{{ $isUserActive ? 'true' : 'false' }}" aria-controls="collapseTwo">
|
|
|
|
<i class="fas fa-fw fa-file-alt"></i>
|
|
|
|
<span>Report</span>
|
|
|
|
</a>
|
|
|
|
<div id="collapsereport" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
|
|
|
|
<div class="bg-white py-2 collapse-inner rounded">
|
|
|
|
<a class="collapse-item {{ $active == 'menu-Pettern_Lot_Peti' ? 'active' : '' }}"
|
|
|
|
href="{{ route('dashboard.Pettern_Lot_Peti.index') }}">PATTERN LOT
|
|
|
|
PETI</a>
|
|
|
|
<a class="collapse-item {{ $active == 'menu-user' ? 'active' : '' }}" href="#">Report
|
|
|
|
Peti</a>
|
|
|
|
<a class="collapse-item {{ $active == 'menu-user' ? 'active' : '' }}" href="#">Report
|
|
|
|
Peminjaman</a>
|
|
|
|
<a class="collapse-item {{ $active == 'menu-user' ? 'active' : '' }}" href="#">Report
|
|
|
|
Pengembalian</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
@else
|
|
|
|
@include('pages.layouts.sidebar_user')
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Divider -->
|
|
|
|
<hr class="sidebar-divider d-none d-md-block">
|
|
|
|
|
|
|
|
<!-- Sidebar Toggler (Sidebar) -->
|
|
|
|
<div class="text-center d-none d-md-inline">
|
|
|
|
<button class="rounded-circle border-0" id="sidebarToggle"></button>
|
|
|
|
</div>
|
|
|
|
</ul>
|