515 lines
21 KiB
PHP
515 lines
21 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>Jember Kamera Mangli - @yield('title', 'Home')</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--primary: #edc039;
|
|
--primary-dark: #c79f23;
|
|
--primary-soft: #fff6d6;
|
|
--primary-soft-strong: #ffefb3;
|
|
--secondary: #f6d978;
|
|
--page-bg: #f4f4f1;
|
|
--surface: #ffffff;
|
|
--surface-soft: #fff8dd;
|
|
--surface-accent: #fff3c0;
|
|
--border-soft: #e5e7eb;
|
|
--text-dark: #111827;
|
|
--text-muted: #6b7280;
|
|
}
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(237, 192, 57, 0.12), transparent 28%),
|
|
radial-gradient(circle at top right, rgba(246, 217, 120, 0.12), transparent 24%),
|
|
var(--page-bg);
|
|
}
|
|
.gradient-bg {
|
|
background: linear-gradient(135deg, rgba(237, 192, 57, 0.92) 0%, rgba(246, 217, 120, 0.82) 100%);
|
|
}
|
|
.soft-gradient-bg {
|
|
background: linear-gradient(135deg, rgba(255, 246, 214, 0.95) 0%, rgba(255, 239, 179, 0.92) 100%);
|
|
}
|
|
.surface-card {
|
|
background: rgba(255, 255, 255, 0.96);
|
|
border: 1px solid rgba(229, 231, 235, 0.95);
|
|
box-shadow: 0 22px 50px rgba(15, 23, 42, 0.06);
|
|
}
|
|
.app-shell {
|
|
width: min(100%, 80rem);
|
|
}
|
|
.nav-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.48rem 0.82rem;
|
|
border-radius: 9999px;
|
|
color: #4b5563;
|
|
transition: all 0.22s ease;
|
|
}
|
|
.nav-pill:hover {
|
|
background: rgba(237, 192, 57, 0.14);
|
|
color: var(--text-dark);
|
|
transform: translateY(-1px);
|
|
}
|
|
.nav-pill-active {
|
|
background: var(--primary);
|
|
color: #111827;
|
|
box-shadow: 0 12px 24px rgba(199, 159, 35, 0.24);
|
|
}
|
|
.nav-badge {
|
|
display: inline-flex;
|
|
min-width: 1.2rem;
|
|
height: 1.2rem;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 9999px;
|
|
background: #dc2626;
|
|
color: #ffffff;
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
padding: 0 0.3rem;
|
|
box-shadow: 0 8px 16px rgba(220, 38, 38, 0.22);
|
|
}
|
|
.btn-dark {
|
|
background: var(--primary);
|
|
color: #111827;
|
|
border-radius: 9999px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.btn-dark:hover {
|
|
background: var(--primary-dark);
|
|
transform: translateY(-1px);
|
|
}
|
|
.mobile-nav-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2.75rem;
|
|
height: 2.75rem;
|
|
border-radius: 9999px;
|
|
border: 1px solid rgba(229, 231, 235, 0.95);
|
|
background: #ffffff;
|
|
color: #111827;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.mobile-nav-toggle:hover {
|
|
border-color: rgba(237, 192, 57, 0.42);
|
|
color: var(--primary-dark);
|
|
}
|
|
input:not([type='checkbox']):not([type='radio']):not([type='file']),
|
|
select,
|
|
textarea {
|
|
background-color: #ffffff !important;
|
|
border: 1.5px solid #cbd5e1 !important;
|
|
box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
|
|
}
|
|
input:not([type='checkbox']):not([type='radio']):not([type='file'])::placeholder,
|
|
textarea::placeholder {
|
|
color: #94a3b8;
|
|
}
|
|
input:not([type='checkbox']):not([type='radio']):not([type='file']):hover,
|
|
select:hover,
|
|
textarea:hover {
|
|
border-color: #94a3b8 !important;
|
|
}
|
|
input:not([type='checkbox']):not([type='radio']):not([type='file']):focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary) !important;
|
|
box-shadow: 0 0 0 4px rgba(237, 192, 57, 0.18), inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
|
|
}
|
|
.password-field {
|
|
position: relative;
|
|
}
|
|
.password-field input {
|
|
padding-right: 3.25rem !important;
|
|
}
|
|
.password-toggle {
|
|
position: absolute;
|
|
top: 50%;
|
|
right: 0.95rem;
|
|
transform: translateY(-50%);
|
|
border: 0;
|
|
background: transparent;
|
|
color: #6b7280;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
.password-toggle:hover {
|
|
color: var(--primary-dark);
|
|
}
|
|
.brand-logo {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.02em;
|
|
color: var(--text-dark);
|
|
transition: color 0.25s ease, transform 0.25s ease;
|
|
}
|
|
.brand-logo:hover {
|
|
color: var(--primary-dark);
|
|
transform: translateY(-1px);
|
|
}
|
|
.brand-logo .wave-char {
|
|
display: inline-block;
|
|
transition: color 0.25s ease;
|
|
}
|
|
.brand-logo:hover .wave-char {
|
|
animation: brand-wave 0.8s ease-in-out calc(var(--char-index) * 0.045s);
|
|
color: var(--primary-dark);
|
|
}
|
|
.brand-strip {
|
|
border: 1px solid rgba(229, 231, 235, 0.8);
|
|
background: rgba(255, 255, 255, 0.88);
|
|
box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
|
|
}
|
|
.footer-info-card {
|
|
border: 1px solid rgba(229, 231, 235, 0.8);
|
|
background: rgba(255, 255, 255, 0.9);
|
|
box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
|
|
}
|
|
.footer-info-title {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: #111827;
|
|
}
|
|
.footer-info-text {
|
|
color: #6b7280;
|
|
line-height: 1.9;
|
|
text-align: justify;
|
|
text-align-last: left;
|
|
}
|
|
.footer-info-section {
|
|
max-width: 22rem;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
.footer-social-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 3rem;
|
|
height: 3rem;
|
|
border-radius: 9999px;
|
|
border: 1px solid rgba(229, 231, 235, 0.95);
|
|
background: #ffffff;
|
|
color: #111827;
|
|
font-size: 1.6rem;
|
|
transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease;
|
|
}
|
|
.footer-social-link:hover {
|
|
color: var(--primary-dark);
|
|
border-color: rgba(237, 192, 57, 0.42);
|
|
transform: translateY(-2px);
|
|
}
|
|
.wa-chat-bubble {
|
|
position: fixed;
|
|
right: 1.1rem;
|
|
bottom: 1.1rem;
|
|
z-index: 60;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.7rem;
|
|
border-radius: 9999px;
|
|
padding: 0.85rem 1rem;
|
|
background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
|
|
color: #ffffff;
|
|
box-shadow: 0 18px 36px rgba(37, 211, 102, 0.28);
|
|
transition: transform 0.22s ease, box-shadow 0.22s ease;
|
|
}
|
|
.wa-chat-bubble:hover {
|
|
transform: translateY(-2px) scale(1.01);
|
|
box-shadow: 0 22px 42px rgba(37, 211, 102, 0.34);
|
|
}
|
|
.wa-chat-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2.6rem;
|
|
height: 2.6rem;
|
|
border-radius: 9999px;
|
|
background: rgba(255, 255, 255, 0.16);
|
|
font-size: 1.4rem;
|
|
}
|
|
.wa-chat-copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: 1.15;
|
|
}
|
|
.wa-chat-copy strong {
|
|
font-size: 0.92rem;
|
|
}
|
|
.wa-chat-copy span {
|
|
font-size: 0.74rem;
|
|
color: rgba(255, 255, 255, 0.88);
|
|
}
|
|
.brand-chip {
|
|
color: #a3a3a3;
|
|
letter-spacing: -0.03em;
|
|
transition: color 0.22s ease, transform 0.22s ease;
|
|
}
|
|
.brand-chip:hover {
|
|
color: var(--primary-dark);
|
|
transform: translateY(-2px);
|
|
}
|
|
.responsive-table {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.responsive-table table {
|
|
min-width: 100%;
|
|
}
|
|
.responsive-table::-webkit-scrollbar {
|
|
height: 8px;
|
|
}
|
|
.responsive-table::-webkit-scrollbar-thumb {
|
|
background: rgba(148, 163, 184, 0.55);
|
|
border-radius: 9999px;
|
|
}
|
|
@media (max-width: 767px) {
|
|
.brand-strip,
|
|
.footer-info-card {
|
|
border-radius: 1.5rem;
|
|
}
|
|
.brand-chip {
|
|
font-size: 1.35rem;
|
|
}
|
|
.footer-info-section {
|
|
max-width: 100%;
|
|
}
|
|
.footer-info-text {
|
|
text-align: left;
|
|
}
|
|
.wa-chat-bubble {
|
|
right: 0.85rem;
|
|
bottom: 0.85rem;
|
|
padding: 0.8rem;
|
|
}
|
|
.wa-chat-copy {
|
|
display: none;
|
|
}
|
|
}
|
|
@keyframes brand-wave {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
35% {
|
|
transform: translateY(-5px);
|
|
}
|
|
70% {
|
|
transform: translateY(2px);
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="min-h-screen flex flex-col text-gray-900">
|
|
@php
|
|
$currentUser = auth()->user();
|
|
$unreadAdminNotificationCount = $currentUser && $currentUser->isUser()
|
|
? $currentUser->penyewaans()
|
|
->whereNotNull('admin_catatan')
|
|
->whereNull('admin_catatan_read_at')
|
|
->count()
|
|
: 0;
|
|
@endphp
|
|
@unless(View::hasSection('hide_navbar'))
|
|
<div class="px-4 pt-5 sm:px-6 lg:px-8">
|
|
<nav class="surface-card app-shell mx-auto rounded-[1.75rem]">
|
|
<div class="flex min-h-16 items-center justify-between gap-4 px-4 py-3 sm:px-6">
|
|
<div class="flex min-w-0 items-center">
|
|
@php($brandName = 'Jember Kamera Mangli')
|
|
<a href="{{ url('/') }}" class="brand-logo text-base font-bold tracking-tight sm:text-xl" aria-label="{{ $brandName }}">
|
|
@foreach(mb_str_split($brandName) as $index => $char)
|
|
<span
|
|
class="wave-char"
|
|
style="--char-index: {{ $index }}"
|
|
>{{ $char === ' ' ? "\u{00A0}" : $char }}</span>
|
|
@endforeach
|
|
</a>
|
|
</div>
|
|
<button
|
|
type="button"
|
|
class="mobile-nav-toggle md:hidden"
|
|
data-mobile-nav-toggle
|
|
aria-label="Buka menu navigasi"
|
|
aria-expanded="false"
|
|
aria-controls="mobile-site-nav"
|
|
>
|
|
<i class="bi bi-list text-xl"></i>
|
|
</button>
|
|
<div class="hidden items-center space-x-1 sm:space-x-2 md:flex">
|
|
<a href="{{ url('/') }}" class="nav-pill {{ request()->routeIs('landing') ? 'nav-pill-active' : '' }}">Home</a>
|
|
<a href="{{ url('/rekomendasi') }}" class="nav-pill {{ request()->routeIs('form') ? 'nav-pill-active' : '' }}">Rekomendasi</a>
|
|
<a href="{{ route('sewa.kamera.index') }}" class="nav-pill {{ request()->routeIs('sewa.kamera.*') ? 'nav-pill-active' : '' }}">Sewa Kamera</a>
|
|
<a href="{{ route('sewa.paket.create') }}" class="nav-pill {{ request()->routeIs('sewa.paket.*') ? 'nav-pill-active' : '' }}">Sewa Paket</a>
|
|
@auth
|
|
@if(auth()->user()->isAdmin())
|
|
<a href="{{ route('dashboard') }}" class="nav-pill {{ request()->routeIs('dashboard') ? 'nav-pill-active' : '' }}">Dashboard</a>
|
|
@else
|
|
<a href="{{ route('profile') }}" class="nav-pill gap-2 {{ request()->routeIs('profile') ? 'nav-pill-active' : '' }}">
|
|
<span>Profile</span>
|
|
@if($unreadAdminNotificationCount > 0)
|
|
<span class="nav-badge">{{ min($unreadAdminNotificationCount, 9) }}{{ $unreadAdminNotificationCount > 9 ? '+' : '' }}</span>
|
|
@endif
|
|
</a>
|
|
@endif
|
|
<form method="POST" action="{{ route('logout') }}">
|
|
@csrf
|
|
<button type="submit" class="nav-pill text-sm font-medium">Logout</button>
|
|
</form>
|
|
@else
|
|
<a href="{{ route('login') }}" class="nav-pill {{ request()->routeIs('login') ? 'nav-pill-active' : '' }}">Login</a>
|
|
<a href="{{ route('register') }}" class="nav-pill {{ request()->routeIs('register') ? 'nav-pill-active' : '' }}">Register</a>
|
|
@endauth
|
|
</div>
|
|
</div>
|
|
<div id="mobile-site-nav" class="hidden border-t border-gray-100 px-4 pb-4 pt-2 md:hidden">
|
|
<div class="grid gap-2">
|
|
<a href="{{ url('/') }}" class="nav-pill {{ request()->routeIs('landing') ? 'nav-pill-active' : '' }}">Home</a>
|
|
<a href="{{ url('/rekomendasi') }}" class="nav-pill {{ request()->routeIs('form') ? 'nav-pill-active' : '' }}">Rekomendasi</a>
|
|
<a href="{{ route('sewa.kamera.index') }}" class="nav-pill {{ request()->routeIs('sewa.kamera.*') ? 'nav-pill-active' : '' }}">Sewa Kamera</a>
|
|
<a href="{{ route('sewa.paket.create') }}" class="nav-pill {{ request()->routeIs('sewa.paket.*') ? 'nav-pill-active' : '' }}">Sewa Paket</a>
|
|
@auth
|
|
@if(auth()->user()->isAdmin())
|
|
<a href="{{ route('dashboard') }}" class="nav-pill {{ request()->routeIs('dashboard') ? 'nav-pill-active' : '' }}">Dashboard</a>
|
|
@else
|
|
<a href="{{ route('profile') }}" class="nav-pill gap-2 {{ request()->routeIs('profile') ? 'nav-pill-active' : '' }}">
|
|
<span>Profile</span>
|
|
@if($unreadAdminNotificationCount > 0)
|
|
<span class="nav-badge">{{ min($unreadAdminNotificationCount, 9) }}{{ $unreadAdminNotificationCount > 9 ? '+' : '' }}</span>
|
|
@endif
|
|
</a>
|
|
@endif
|
|
<form method="POST" action="{{ route('logout') }}">
|
|
@csrf
|
|
<button type="submit" class="nav-pill w-full text-sm font-medium">Logout</button>
|
|
</form>
|
|
@else
|
|
<a href="{{ route('login') }}" class="nav-pill {{ request()->routeIs('login') ? 'nav-pill-active' : '' }}">Login</a>
|
|
<a href="{{ route('register') }}" class="nav-pill {{ request()->routeIs('register') ? 'nav-pill-active' : '' }}">Register</a>
|
|
@endauth
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
@endunless
|
|
<main class="py-8 md:py-10 flex-1">
|
|
@yield('content')
|
|
</main>
|
|
<a
|
|
href="https://wa.me/6281556611778"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
class="wa-chat-bubble"
|
|
aria-label="Hubungi WhatsApp"
|
|
>
|
|
<span class="wa-chat-icon">
|
|
<i class="bi bi-whatsapp"></i>
|
|
</span>
|
|
<span class="wa-chat-copy">
|
|
<strong>Chat WhatsApp</strong>
|
|
<span>Butuh bantuan? Klik di sini</span>
|
|
</span>
|
|
</a>
|
|
<footer class="px-4 pb-5 sm:px-6 lg:px-8">
|
|
<div class="app-shell mx-auto mb-4 rounded-3xl brand-strip px-4 py-6 text-center sm:px-6">
|
|
<p class="text-xs font-semibold uppercase tracking-[0.38em] text-gray-400">Brands</p>
|
|
<div class="mt-5 flex flex-wrap items-center justify-center gap-x-6 gap-y-4 text-2xl font-semibold sm:gap-x-12 sm:text-3xl">
|
|
<span class="brand-chip">SONY</span>
|
|
<span class="brand-chip">Canon</span>
|
|
<span class="brand-chip">FUJIFILM</span>
|
|
<span class="brand-chip">Nikon</span>
|
|
<span class="brand-chip">SIGMA</span>
|
|
</div>
|
|
<p class="mt-4 text-xs tracking-[0.2em] text-gray-400 sm:text-sm sm:tracking-[0.24em]">and many more</p>
|
|
</div>
|
|
<div class="app-shell mx-auto mb-4 rounded-3xl footer-info-card px-4 py-8 sm:px-6 md:px-8">
|
|
<div class="grid justify-items-center gap-8 md:grid-cols-3 md:gap-10">
|
|
<div class="footer-info-section">
|
|
<h3 class="footer-info-title">About Us</h3>
|
|
<p class="footer-info-text mt-4">
|
|
Rental Kamera Lensa Lighting Stabilizer Audio Multimedia dll. Tersedia di Jember, Jawa Timur. Buka 24 Jam.
|
|
Feel free to contact us what you need for your best equipment production.
|
|
</p>
|
|
</div>
|
|
<div class="footer-info-section">
|
|
<h3 class="footer-info-title">Social Media</h3>
|
|
<div class="mt-5 flex items-center justify-center gap-4">
|
|
<span class="footer-social-link" aria-label="Instagram">
|
|
<i class="bi bi-instagram"></i>
|
|
</span>
|
|
<span class="footer-social-link" aria-label="Facebook">
|
|
<i class="bi bi-facebook"></i>
|
|
</span>
|
|
<span class="footer-social-link" aria-label="TikTok">
|
|
<i class="bi bi-tiktok"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="footer-info-section">
|
|
<h3 class="footer-info-title">Contact Us</h3>
|
|
<div class="footer-info-text mt-4 space-y-1">
|
|
<p><span class="font-semibold text-gray-800">Whatsapp</span> +62 81556611778 (24 Hours)</p>
|
|
<p>Jember, Jawa Timur</p>
|
|
<p>Kritik & Saran +62 81556611778 (WA)</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="app-shell mx-auto rounded-3xl border border-gray-200/80 bg-white/90 px-4 py-4 text-center text-xs text-gray-600 shadow-sm backdrop-blur sm:px-6 sm:text-sm">
|
|
<p><i class="bi bi-c-circle mr-1 text-[#edc039]"></i>{{ date('Y') }} Jember Kamera Mangli - Sistem Rekomendasi TOPSIS</p>
|
|
</div>
|
|
</footer>
|
|
<script>
|
|
document.addEventListener('click', function (event) {
|
|
const mobileNavToggle = event.target.closest('[data-mobile-nav-toggle]');
|
|
|
|
if (mobileNavToggle) {
|
|
const mobileNav = document.getElementById('mobile-site-nav');
|
|
const icon = mobileNavToggle.querySelector('i');
|
|
|
|
if (!mobileNav || !icon) {
|
|
return;
|
|
}
|
|
|
|
const isHidden = mobileNav.classList.contains('hidden');
|
|
mobileNav.classList.toggle('hidden');
|
|
mobileNavToggle.setAttribute('aria-expanded', isHidden ? 'true' : 'false');
|
|
icon.className = isHidden ? 'bi bi-x-lg text-lg' : 'bi bi-list text-xl';
|
|
return;
|
|
}
|
|
|
|
const toggleButton = event.target.closest('[data-toggle-password]');
|
|
|
|
if (toggleButton) {
|
|
const targetId = toggleButton.getAttribute('data-toggle-password');
|
|
const input = document.getElementById(targetId);
|
|
const icon = toggleButton.querySelector('i');
|
|
|
|
if (!input || !icon) {
|
|
return;
|
|
}
|
|
|
|
const showPassword = input.type === 'password';
|
|
input.type = showPassword ? 'text' : 'password';
|
|
icon.className = showPassword ? 'bi bi-eye-slash' : 'bi bi-eye';
|
|
toggleButton.setAttribute('aria-label', showPassword ? 'Sembunyikan password' : 'Lihat password');
|
|
return;
|
|
}
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|