fanatic/resources/views/admin/layout.blade.php

69 lines
1.9 KiB
PHP
Raw Normal View History

2022-04-23 10:57:56 -07:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>@yield('title', 'Fanatic')</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.css">
<link rel="stylesheet" href="/css/admin/style.css">
2022-04-25 19:50:01 -07:00
<livewire:styles />
2022-04-23 10:57:56 -07:00
</head>
<body>
<div class="l-container">
@auth
<nav class="l-nav">
2022-04-24 17:44:39 -07:00
<a href="{{ route('admin.dashboard') }}" class="l-nav__tab">
2022-04-23 16:25:16 -07:00
<span class="l-nav__link">dashboard</span>
</a>
2022-04-24 17:44:39 -07:00
<a href="{{ route('admin.joined.index') }}" class="l-nav__tab">
2022-04-23 16:25:16 -07:00
<span class="l-nav__link">joined</span>
</a>
<a href="#" class="l-nav__tab"><span class="l-nav__link">owned</span></a>
<a href="#" class="l-nav__tab"><span class="l-nav__link">collective</span></a>
2022-04-24 17:44:39 -07:00
<x-admin.form.destroy :btnClass="'l-nav__tab'" :object="auth_collective()"
:route="'admin.sessions.destroy'" :adminNav="true"
:label="'log out'" />
2022-04-23 10:57:56 -07:00
</nav>
@endauth
<main class="l-main">
2022-04-23 16:25:16 -07:00
<nav class="l-page-nav">
<h1><span>@yield('pg-title')</span></h1>
<div class="l-page-nav__links">@yield('pg-nav')</div>
</nav>
2022-04-23 11:39:07 -07:00
@if (session()->has('success'))
2022-04-26 11:15:27 -07:00
<p class="success alert">{{ session()->get('success') }}</p>
2022-04-23 11:39:07 -07:00
@endif
@if (session()->has('error'))
2022-04-26 11:15:27 -07:00
<p class="error alert">{{ session()->get('error') }}</p>
2022-04-23 11:39:07 -07:00
@endif
@if (session()->has('warning'))
2022-04-26 11:15:27 -07:00
<p class="warning alert">{{ session()->get('warning') }}</p>
2022-04-23 11:39:07 -07:00
@endif
2022-04-23 10:57:56 -07:00
@yield('content')
</main>
</div>
2022-04-25 19:50:01 -07:00
<livewire:scripts />
2022-04-26 18:50:17 -07:00
<script src="https://code.jquery.com/jquery-3.6.0.js"
integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk="
crossorigin="anonymous"></script>
2022-04-26 11:15:27 -07:00
<script>
2022-04-26 18:50:17 -07:00
$('.alert').delay(5000).fadeOut(500);
2022-04-26 11:15:27 -07:00
</script>
2022-04-23 10:57:56 -07:00
</body>
</html>