Reservasi-Cafe/resources/views/components/app-layout.blade.php

92 lines
3.7 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', 'Legacy Eatery & Space') }}</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Flowbite CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.css" rel="stylesheet" />
@vite(['resources/css/app.css', 'resources/js/app.js'])
<style>
.bg-maroon {
background-color: #8B0000;
}
.text-maroon {
color: #8B0000;
}
.hover\:bg-maroon:hover {
background-color: #a00000;
}
</style>
</head>
<body class="font-sans antialiased">
<div class="min-h-screen bg-gray-100">
<!-- Include Admin Sidebar -->
@include('layouts.admin.sidebar')
<!-- Main Content Area -->
<div class="ml-64">
<!-- Navigation -->
<nav class="bg-maroon">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex">
<!-- Logo -->
<div class="flex-shrink-0 flex items-center">
<a href="{{ route('admin.dashboard') }}" class="text-white font-bold text-xl">
Admin Panel
</a>
</div>
</div>
<!-- Navigation Links -->
<div class="hidden sm:flex sm:items-center sm:ml-6">
<a href="{{ route('admin.menu') }}" class="text-white px-3 py-2 rounded-md text-sm font-medium hover:bg-red-900">Menu</a>
<a href="{{ route('admin.tables') }}" class="text-white px-3 py-2 rounded-md text-sm font-medium hover:bg-red-900">Tables</a>
<a href="{{ route('admin.reservations') }}" class="text-white px-3 py-2 rounded-md text-sm font-medium hover:bg-red-900">Reservations</a>
<a href="{{ route('admin.carousel.index') }}" class="text-white px-3 py-2 rounded-md text-sm font-medium hover:bg-red-900">Carousel</a>
<!-- Logout -->
<form method="POST" action="{{ route('logout') }}" class="ml-3">
@csrf
<button type="submit" class="text-white px-3 py-2 rounded-md text-sm font-medium hover:bg-red-900">
Logout
</button>
</form>
</div>
</div>
</div>
</nav>
<!-- Page Heading -->
@if (isset($header))
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }}
</div>
</header>
@endif
<!-- Page Content -->
<main>
{{ $slot }}
</main>
</div>
</div>
<!-- Flowbite JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.js"></script>
@stack('scripts')
</body>
</html>