109 lines
4.9 KiB
PHP
109 lines
4.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<title>{{ config('app.name', 'Sistem Rekomendasi C4.5') }}</title>
|
|
|
|
<!-- Google Fonts -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
|
|
|
<!-- Bootstrap 5.3 CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<!-- FontAwesome 6 -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<!-- Animate.css -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
|
|
|
|
<style>
|
|
body {
|
|
font-family: 'Plus Jakarta Sans', sans-serif;
|
|
background-color: #f8fafc;
|
|
color: #334155;
|
|
}
|
|
|
|
/* Hover Animation Card */
|
|
.hover-card {
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.hover-card:hover {
|
|
transform: translateY(-6px);
|
|
box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15) !important;
|
|
}
|
|
|
|
/* Gradient Banner */
|
|
.bg-gradient-custom {
|
|
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
|
|
}
|
|
|
|
/* Input Glassmorphism Effect */
|
|
.custom-input {
|
|
border: 2px solid #e2e8f0;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.custom-input:focus {
|
|
border-color: #6366f1;
|
|
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-light">
|
|
<!-- Navbar Navigation -->
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-white border-bottom sticky-top shadow-sm">
|
|
<div class="container">
|
|
{{-- PERUBAHAN 1: Ganti route ke 'dashboard' universal --}}
|
|
<span class="navbar-brand fw-bold text-primary" href="{{ route('dashboard') }}">
|
|
<i class="fa-solid fa-graduation-cap me-2 text-primary"></i>Sistem Rekomendasi
|
|
</span>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav me-auto">
|
|
<li class="nav-item">
|
|
{{-- PERUBAHAN 2: Ganti route ke 'dashboard' universal agar terarah otomatis sesuai role --}}
|
|
<a class="nav-link fw-semibold {{ request()->routeIs('dashboard') || request()->routeIs('*.dashboard') ? 'active text-primary' : '' }}" href="{{ route('dashboard') }}">
|
|
<i class="fa-solid fa-chart-line me-1"></i> Dashboard
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link fw-semibold {{ request()->routeIs('prediksi.*') ? 'active text-primary' : '' }}" href="{{ route('prediksi.index') }}">
|
|
<i class="fa-solid fa-compass me-1"></i> Cek Rekomendasi
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link fw-semibold {{ request()->routeIs('riwayat.*') ? 'active text-primary' : '' }}" href="{{ route('riwayat.index') }}">
|
|
<i class="fa-solid fa-clock-rotate-left me-1"></i> Riwayat Rekomendasi
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<div class="d-flex align-items-center gap-3">
|
|
<!-- LINK PROFIL USER -->
|
|
<a href="{{ route('profile.edit') }}" class="text-decoration-none fw-bold text-secondary profile-link d-flex align-items-center gap-1" title="Edit Profil Saya">
|
|
<i class="fa-solid fa-user-circle fs-5 me-1"></i>
|
|
<span>{{ Auth::user()->name ?? 'User' }}</span>
|
|
</a>
|
|
<form method="POST" action="{{ route('logout') }}" class="m-0">
|
|
@csrf
|
|
<button type="submit" class="btn btn-outline-danger btn-sm rounded-3">
|
|
<i class="fa-solid fa-right-from-bracket me-1"></i> Keluar
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Main Content Dynamic Injection -->
|
|
<main class="py-4">
|
|
@yield('content')
|
|
</main>
|
|
|
|
<!-- Bootstrap 5 JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html> |