Files
thecrimesynticate/resources/views/layouts/navigation.blade.php
T

63 lines
3.5 KiB
PHP

<aside class="bg-syndicate-900 border-r border-syndicate-700 w-56 flex-shrink-0 flex flex-col">
<nav class="flex-1 py-4">
<ul class="space-y-1 px-2">
<li>
<a href="{{ route('game.dashboard') }}"
class="flex items-center space-x-3 px-3 py-2 rounded-lg text-sm transition
{{ request()->routeIs('game.dashboard') ? 'border-l-2 border-crime-500 bg-syndicate-800 text-gray-100 pl-[10px]' : 'text-gray-400 hover:bg-syndicate-800 hover:text-gray-100' }}">
<span class="text-base">🏠</span>
<span>Dashboard</span>
</a>
</li>
<li>
<a href="{{ route('game.crimes.index') }}"
class="flex items-center space-x-3 px-3 py-2 rounded-lg text-sm transition
{{ request()->routeIs('game.crimes.*') ? 'border-l-2 border-crime-500 bg-syndicate-800 text-gray-100 pl-[10px]' : 'text-gray-400 hover:bg-syndicate-800 hover:text-gray-100' }}">
<span class="text-base">🎯</span>
<span>Crimes</span>
</a>
</li>
<li>
<a href="{{ route('game.inventory.index') }}"
class="flex items-center space-x-3 px-3 py-2 rounded-lg text-sm transition
{{ request()->routeIs('game.inventory.*') ? 'border-l-2 border-crime-500 bg-syndicate-800 text-gray-100 pl-[10px]' : 'text-gray-400 hover:bg-syndicate-800 hover:text-gray-100' }}">
<span class="text-base">🎒</span>
<span>Inventory</span>
</a>
</li>
<li>
<a href="{{ route('game.character.show') }}"
class="flex items-center space-x-3 px-3 py-2 rounded-lg text-sm transition
{{ request()->routeIs('game.character.show') ? 'border-l-2 border-crime-500 bg-syndicate-800 text-gray-100 pl-[10px]' : 'text-gray-400 hover:bg-syndicate-800 hover:text-gray-100' }}">
<span class="text-base">👤</span>
<span>Profile</span>
</a>
</li>
@if(auth()->check() && auth()->user()->character)
@php $charStatus = auth()->user()->character->status; @endphp
@if($charStatus === \App\Enums\CharacterStatus::IN_HOSPITAL)
<li class="pt-2 border-t border-syndicate-700 mt-2">
<a href="{{ route('game.hospital') }}"
class="flex items-center space-x-3 px-3 py-2 rounded-lg text-sm transition border-l-2 border-red-500 bg-syndicate-800 text-red-400 pl-[10px]">
<span class="text-base">🏥</span>
<span>Hospital</span>
</a>
</li>
@endif
@if($charStatus === \App\Enums\CharacterStatus::IN_JAIL)
<li class="pt-2 border-t border-syndicate-700 mt-2">
<a href="{{ route('game.jail') }}"
class="flex items-center space-x-3 px-3 py-2 rounded-lg text-sm transition border-l-2 border-yellow-500 bg-syndicate-800 text-yellow-400 pl-[10px]">
<span class="text-base">🚔</span>
<span>Jail</span>
</a>
</li>
@endif
@endif
</ul>
</nav>
</aside>