v0.7.3 - It now extends the layout
This commit is contained in:
parent
a9a9d42fb8
commit
e8278b7125
|
@ -1,72 +1,6 @@
|
||||||
<!DOCTYPE html>
|
@extends("app.layout.base")
|
||||||
<html lang="en">
|
@section("content")
|
||||||
<head>
|
<style>
|
||||||
<title>@yield("title")</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
@if(request()->cookie("mode") == "dark")
|
|
||||||
<link type="text/css" rel="stylesheet" href="{{ mix("/css/webappdark.css") }}">
|
|
||||||
@else
|
|
||||||
<link type="text/css" rel="stylesheet" href="{{ mix("/css/webapp.css") }}">
|
|
||||||
@endif
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header class="row align-items-center" id="header">
|
|
||||||
@if(request()->cookie("mode") == "dark")
|
|
||||||
<img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-hvid.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole">
|
|
||||||
@else
|
|
||||||
<img class="w-50" id="sdeLogo" src="{{URL::asset('/images/logos/Logo-normal.svg')}}" onclick="location.href = '{{ route("root.index") }}';" alt="Syddansk Erhvervsskole">
|
|
||||||
@endif
|
|
||||||
<button class="ml-auto" id="toggle">
|
|
||||||
<i id="icon" class="fas fa-bars" style="color: black;"></i>
|
|
||||||
</button>
|
|
||||||
</header>
|
|
||||||
<div class="d-none bg-sde-blue col" id="menu">
|
|
||||||
<a href="{{ route("root.index") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/Home.svg')}}" alt="Home">
|
|
||||||
Home
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="{{ route("menu-plans.index") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/Menuplan.svg')}}" alt="Menuplan">
|
|
||||||
Menuplan
|
|
||||||
</a>
|
|
||||||
<a href="{{ route("events.index") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/Aktiviteter.svg')}}" alt="Aktiviteter">
|
|
||||||
Aktiviteter
|
|
||||||
</a>
|
|
||||||
<a href="{{ route("washing-reservations.appindex") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/Vaske booking liste.svg')}}" alt="Reservationer">
|
|
||||||
Reservationer
|
|
||||||
</a>
|
|
||||||
<a href="{{ route("contacts.index") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/Kontoret.svg')}}" alt="Kontoret">
|
|
||||||
Kontoret
|
|
||||||
</a>
|
|
||||||
<a href="{{ route("phones.index") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/Vagttelefon-hvid.svg')}}" alt="Vagttelefon">
|
|
||||||
Vagttelefon
|
|
||||||
</a>
|
|
||||||
<a href="{{ route("guides.index") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/Vejledninger.svg')}}" alt="Guide">
|
|
||||||
Vejledninger
|
|
||||||
</a>
|
|
||||||
<a href="{{ route("users.account") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/user-hvid.svg')}}" alt="Konto">
|
|
||||||
Konto
|
|
||||||
</a>
|
|
||||||
<a href="{{ route("settings.index") }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/settings-hvid.svg')}}" alt="Indstillinger">
|
|
||||||
{{ __('msg.indstillinger') }}
|
|
||||||
</a>
|
|
||||||
<a href="{{ route('users.logout') }}">
|
|
||||||
<img src="{{URL::asset('/images/icons/Logout.svg')}}" alt="Logud">
|
|
||||||
Log Ud
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<style>
|
|
||||||
div.card {
|
div.card {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
|
@ -92,9 +26,8 @@
|
||||||
ol {
|
ol {
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<main>
|
||||||
<main>
|
|
||||||
@foreach(\App\News::query()->orderBy("created_at", "desc")->get() as $new)
|
@foreach(\App\News::query()->orderBy("created_at", "desc")->get() as $new)
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
@ -110,10 +43,10 @@
|
||||||
@if(count(\App\News::query()->orderBy("created_at", "desc")->get()) == 0)
|
@if(count(\App\News::query()->orderBy("created_at", "desc")->get()) == 0)
|
||||||
<p class="text-center">{{__('msg.ingennyheder')}}</p>
|
<p class="text-center">{{__('msg.ingennyheder')}}</p>
|
||||||
@endif
|
@endif
|
||||||
</main>
|
</main>
|
||||||
<script src="{{ mix("/js/app.js") }}"></script>
|
@endsection
|
||||||
@yield("scripts")
|
@section("scripts")
|
||||||
@if(request()->cookie("mode") == "dark")
|
@if(request()->cookie("mode") == "dark")
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function toggleMenu(menu) {
|
function toggleMenu(menu) {
|
||||||
let menuElement = document.getElementById(menu);
|
let menuElement = document.getElementById(menu);
|
||||||
|
@ -150,6 +83,5 @@
|
||||||
toggleMenu('menu');
|
toggleMenu('menu');
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@endif
|
@endif
|
||||||
</body>
|
@endsection
|
||||||
</html>
|
|
||||||
|
|
Loading…
Reference in New Issue