66 lines
1.8 KiB
PHP
66 lines
1.8 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="en">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||
<title>Admin Dashboard – Rosetta International Education</title>
|
||
<script src="https://cdn.tailwindcss.com"></script>
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||
<style>
|
||
body {
|
||
font-family: 'Inter', sans-serif;
|
||
}
|
||
|
||
.dropdown:focus-within .dropdown-menu {
|
||
display: block;
|
||
}
|
||
</style>
|
||
@stack('css')
|
||
</head>
|
||
|
||
<body class="bg-slate-50 min-h-screen flex flex-col">
|
||
|
||
@include('layouts.header')
|
||
|
||
<main class="flex-1">
|
||
@yield('content')
|
||
</main>
|
||
|
||
@include('layouts.footer')
|
||
|
||
<!-- Dropdown + Scoreboard JS -->
|
||
<!-- Replace your dropdown JS with jQuery version -->
|
||
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
||
<script>
|
||
$(document).ready(function () {
|
||
|
||
// Toggle dropdown
|
||
$('.dropdown > button').on('click', function (e) {
|
||
e.stopPropagation();
|
||
$(this).next('.dropdown-menu').toggleClass('hidden');
|
||
});
|
||
|
||
// Close all dropdowns when clicking outside
|
||
$(document).on('click', function () {
|
||
$('.dropdown-menu').addClass('hidden');
|
||
});
|
||
|
||
});
|
||
</script>
|
||
|
||
<script>
|
||
document.querySelector('input[name="search"]').addEventListener('input', function () {
|
||
clearTimeout(this._t);
|
||
this._t = setTimeout(() => this.closest('form').submit(), 400);
|
||
});
|
||
</script>
|
||
|
||
@stack('js')
|
||
|
||
</body>
|
||
|
||
</html>
|