MIF_E31221259/resources/views/user/partials/navbar.blade.php

59 lines
2.9 KiB
PHP

<nav
style="display:flex; justify-content:space-between; align-items:center; background-color:#f9f9f9; padding:15px 40px; box-shadow:0 2px 6px rgba(0,0,0,0.1);">
<div style="display:flex; align-items:center;">
<!-- Logo - Menyesuaikan ukuran logo agar lebih kecil -->
<span class="logo" style="font-size:20px; font-weight:bold; color:#2196F3;">
<img src="{{ asset('images/logo.png') }}" alt="Your Logo"
style="vertical-align: middle; width: 100px; height: auto;">
</span>
</div>
<div style="display:flex; align-items:center; gap:20px;">
<div style="display:flex; gap:20px;">
<a href="{{ route('user.dashboard') }}"
style="text-decoration:none; font-size:18px; {{ request()->routeIs('user.dashboard') ? 'color:#2196F3; font-weight:bold;' : 'color:#444;' }} ">
Dashboard
</a>
<a href="{{ route('user.infojurusan') }}"
style="text-decoration:none; font-size:18px; {{ request()->routeIs('user.infojurusan') ? 'color:#2196F3; font-weight:bold;' : 'color:#444;' }} ">
Info Jurusan
</a>
<a href="{{ route('user.perhitunganaph.index') }}"
style="text-decoration:none; font-size:18px;
{{ request()->routeIs('user.perhitunganaph.*') || request()->routeIs('user.ahp.*')
? 'color:#2196F3; font-weight:bold;'
: 'color:#444;' }}">
Diagnosa
</a>
<a href="{{ route('user.profile.show') }}"
style="text-decoration:none; font-size:18px; {{ request()->routeIs('user.profile') ? 'color:#2196F3; font-weight:bold;' : 'color:#444;' }} ">
Profile
</a>
<a href="{{ route('user.diagnosis-hasil') }}"
style="text-decoration:none; font-size:18px; {{ request()->routeIs('user.diagnosis-hasil') ? 'color:#2196F3; font-weight:bold;' : 'color:#444;' }} ">
Hasil Diagnosis
</a>
</div>
<div>
@auth
<form action="{{ route('logout') }}" method="POST" style="display:inline;">
@csrf
<button type="submit"
style="background-color:#2196F3; color:#fff; border:none; padding:8px 18px; border-radius:10px; font-size:16px; cursor:pointer; box-shadow:0 2px 4px rgba(0,0,0,0.2);">
Logout
</button>
</form>
@else
<a href="{{ route('login') }}">
<button
style="background-color:#2196F3; color:#fff; border:none; padding:8px 18px; border-radius:10px; font-size:16px; cursor:pointer; box-shadow:0 2px 4px rgba(0,0,0,0.2);">
Login
</button>
</a>
@endauth
</div>
</div>
</nav>