67 lines
4.1 KiB
PHP
67 lines
4.1 KiB
PHP
<!-- Sidebar -->
|
|
<div class="w-40 h-full bg-white shadow-md">
|
|
<!-- Logo -->
|
|
<div class="p-4 flex justify-center">
|
|
<img src="{{ asset('assets/images/logo.png') }}" alt="INUFA Logo" class="w-28 h-28 object-contain">
|
|
</div>
|
|
|
|
<!-- Sidebar Menu -->
|
|
<nav class="mt-4">
|
|
<!-- <a href="{{ route('dashboard') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('dashboard') ? 'bg-blue-800 text-white' : '' }}">
|
|
Dashboard
|
|
</a> -->
|
|
@if(auth()->check() && auth()->user()->tipe_pengguna === 'admin')
|
|
<a href="{{ route('dashboard') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('dashboard') ? 'bg-blue-800 text-white' : '' }}">
|
|
Dashboard
|
|
</a>
|
|
<a href="{{ route('pengguna') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('pengguna*') ? 'bg-blue-800 text-white' : '' }}">
|
|
pengguna
|
|
</a>
|
|
<a href="{{ route('input-stock') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('input-stock*') ? 'bg-blue-800 text-white' : '' }}">
|
|
Input Stock
|
|
</a>
|
|
<a href="{{ route('paket.index') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('paket*') ? 'bg-blue-800 text-white' : '' }}">
|
|
Paket
|
|
</a>
|
|
<!-- Tambahkan menu Pesanan Dibatalkan -->
|
|
<!-- <a href="{{ route('admin.cancelled-orders') }}" class="block py-3 px-4 text-red-700 font-semibold mb-1 hover:bg-red-50 hover:text-red-700 {{ request()->routeIs('admin.cancelled-orders*') ? 'bg-red-100 text-red-700 border-r-4 border-red-500' : '' }}">
|
|
<span class="flex items-center">
|
|
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
</svg>
|
|
Pesanan Dibatalkan
|
|
</span>
|
|
</a> -->
|
|
@endif
|
|
<!-- <a href="{{ route('paket.index') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('paket*') ? 'bg-blue-800 text-white' : '' }}">
|
|
Paket
|
|
</a> -->
|
|
@if(auth()->check() && auth()->user()->tipe_pengguna === 'user')
|
|
<a href="{{ route('sewa.index') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('sewa.*') ? 'bg-blue-800 text-white' : '' }}">
|
|
Sewa
|
|
</a>
|
|
@endif
|
|
@if(auth()->check() && auth()->user()->tipe_pengguna === 'admin')
|
|
<a href="/admin/verifikasi" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->is('admin/verifikasi*') ? 'bg-blue-800 text-white' : '' }}">
|
|
Verifikasi
|
|
</a>
|
|
<a href="{{ route('admin.reports.transactions') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('admin.reports.transactions') ? 'bg-blue-800 text-white' : '' }}">
|
|
Laporan Transaksi
|
|
</a>
|
|
@endif
|
|
@if(auth()->check() && auth()->user()->tipe_pengguna === 'user')
|
|
<a href="{{ route('riwayat') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('riwayat') ? 'bg-blue-800 text-white' : '' }}">
|
|
Riwayat
|
|
</a>
|
|
@endif
|
|
@if(auth()->check() && auth()->user()->tipe_pengguna === 'admin')
|
|
<a href="{{ route('contact.index') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('contact.index') ? 'bg-blue-800 text-white' : '' }}">
|
|
Hubungi Kami
|
|
</a>
|
|
@elseif(auth()->check())
|
|
<a href="{{ route('contact.show') }}" class="block py-3 px-4 text-gray-800 font-semibold mb-1 hover:bg-gray-100 {{ request()->routeIs('contact.*') ? 'bg-blue-800 text-white' : '' }}">
|
|
Hubungi Kami
|
|
</a>
|
|
@endif
|
|
</nav>
|
|
</div>
|