2020-06-15 06:56:21 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>@yield("title")</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2020-10-21 07:12:53 +00:00
|
|
|
<link rel='icon' href='{{ asset('/images/icons/browserFavIcon.svg') }}' type='image/x-icon'>
|
2020-06-15 06:56:21 +00:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
2020-08-11 07:27:07 +00:00
|
|
|
<script src="{{ asset("/js/jquery-3.2.1.min.js") }}"></script>
|
2020-08-21 06:45:39 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
function openNav() {
|
2020-08-24 08:17:08 +00:00
|
|
|
fixpls();
|
2020-08-21 06:45:39 +00:00
|
|
|
var open = document.getElementById("open");
|
|
|
|
var close = document.getElementById("close");
|
|
|
|
|
|
|
|
close.style.display = "block";
|
|
|
|
open.style.display = "none";
|
|
|
|
|
|
|
|
var nav = document.getElementsByClassName("nav")[0];
|
|
|
|
nav.style.width = "";
|
|
|
|
|
|
|
|
var w85 = document.getElementsByClassName("w-85")[0];
|
|
|
|
$(".w-85").css({ "width": "85%" });
|
|
|
|
|
2020-08-25 10:00:10 +00:00
|
|
|
$(".segment > div > h3").css({"margin-left": "", "width": ""});
|
|
|
|
$(".segment > div > h3 > a").css({ "display": ""});
|
|
|
|
$(".segment > div > h3 > a > span").css({"display": ""});
|
|
|
|
|
|
|
|
$(document).on({
|
|
|
|
mouseenter: function() {
|
|
|
|
$(this).find('.tooltiptext').css("visibility", "hidden");
|
|
|
|
},
|
|
|
|
mouseleave: function() {
|
|
|
|
$(this).find('.tooltiptext').css("visibility", "hidden");
|
|
|
|
}
|
|
|
|
}, ".tooltip");
|
|
|
|
$(".segment .hamburger > div").css({"margin-left": "-1rem", "width": "calc(100% - 3rem)"});
|
2020-08-21 06:45:39 +00:00
|
|
|
$(".segment > div > a").css({"margin-left": "auto", "margin-right": ""});
|
|
|
|
|
|
|
|
localStorage.setItem("collapsed", "false");
|
|
|
|
}
|
|
|
|
|
|
|
|
function closeNav() {
|
2020-08-24 08:17:08 +00:00
|
|
|
if (localStorage.getItem("collapsed") !== "true")
|
|
|
|
fixpls();
|
|
|
|
|
2020-08-21 06:45:39 +00:00
|
|
|
var open = document.getElementById("open");
|
|
|
|
var close = document.getElementById("close");
|
|
|
|
|
|
|
|
close.style.display = "none";
|
|
|
|
open.style.display = "block";
|
|
|
|
|
|
|
|
var nav = document.getElementsByClassName("nav")[0];
|
|
|
|
nav.style.width = "64px";
|
|
|
|
|
|
|
|
var w85 = document.getElementsByClassName("w-85")[0];
|
|
|
|
$(".w-85").css({ "width": "calc(100% - 64px)"});
|
|
|
|
|
2020-08-25 10:00:10 +00:00
|
|
|
$(".segment > div > h3").css({"margin-left": "0", "width": "100%"});
|
|
|
|
$(".segment > div > h3 > a").css({"display": "flex"});
|
|
|
|
$(".segment > div > h3 > a > span").css({"display": "none"});
|
|
|
|
|
|
|
|
$(document).on({
|
|
|
|
mouseenter: function() {
|
|
|
|
$(this).find('.tooltiptext').css("visibility", "visible");
|
|
|
|
},
|
|
|
|
mouseleave: function() {
|
|
|
|
$(this).find('.tooltiptext').css("visibility", "hidden");
|
|
|
|
}
|
|
|
|
}, ".tooltip");
|
2020-08-21 06:45:39 +00:00
|
|
|
|
2020-08-25 10:00:10 +00:00
|
|
|
$(".segment.hamburger > div").css({"margin-left": "0", "width": "calc(100% - 4rem)"});
|
2020-08-21 06:45:39 +00:00
|
|
|
$(".segment > div > a").css({"margin-left": "auto", "margin-right": "auto"});
|
|
|
|
|
|
|
|
localStorage.setItem("collapsed", "true");
|
|
|
|
}
|
2020-08-24 06:59:50 +00:00
|
|
|
|
|
|
|
function checkIfIShouldCollapse() {
|
2020-08-24 08:17:08 +00:00
|
|
|
if (localStorage.getItem("collapsed") == "true" && document.readyState === "complete") {
|
2020-08-24 06:59:50 +00:00
|
|
|
closeNav();
|
2020-08-24 08:17:08 +00:00
|
|
|
fixpls();
|
|
|
|
}
|
2020-08-24 06:59:50 +00:00
|
|
|
}
|
2020-08-21 06:45:39 +00:00
|
|
|
</script>
|
2020-08-24 06:59:50 +00:00
|
|
|
<link type="text/css" rel="stylesheet" href="{{ mix("/css/admin.css") }}">
|
|
|
|
</head>
|
2020-08-24 08:17:08 +00:00
|
|
|
<body>
|
2020-08-25 10:00:10 +00:00
|
|
|
<style>
|
|
|
|
.tooltip {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip .tooltiptext {
|
|
|
|
visibility: hidden;
|
|
|
|
display: flex;
|
|
|
|
width: auto;
|
|
|
|
height: 100%;
|
|
|
|
background-color: #333333;
|
|
|
|
color: #fff;
|
|
|
|
text-align: center;
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
margin-top: auto;
|
|
|
|
padding: 0 1rem;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: auto;
|
|
|
|
position: absolute;
|
2020-10-07 09:59:58 +00:00
|
|
|
z-index: 3;
|
2020-08-25 10:00:10 +00:00
|
|
|
top: 0px;
|
|
|
|
left: 100%;
|
|
|
|
font-size: 25px;
|
|
|
|
}
|
|
|
|
|
2020-10-23 06:43:42 +00:00
|
|
|
.letterSpaceingNavBar{
|
|
|
|
letter-spacing: 1.2px;
|
|
|
|
}
|
2020-08-25 10:00:10 +00:00
|
|
|
</style>
|
2020-08-24 06:59:50 +00:00
|
|
|
@yield("header")
|
|
|
|
<main class="row">
|
2020-06-15 06:56:21 +00:00
|
|
|
<div class="col nav" style="background-color: #333333;">
|
2020-08-25 10:00:10 +00:00
|
|
|
<div class="segment hamburger" style="height: 60px;">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="text-white row align-items-center mt-0 mb-0" style="margin-left: -1rem; font-size: 1.15rem; height: calc(100% - 2rem); padding: 1rem 2rem; width: calc(100% - 3rem); background-color: #333333 !important;">
|
|
|
|
<a href="javascript:void(0)" id="open" style="display: none;" onclick="openNav()" class="open-btn text-white p-none ml-auto"><i class="fa fa-bars"></i></a>
|
|
|
|
<a href="javascript:void(0)" id="close" onclick="closeNav()" class="close-btn text-white p-none ml-auto"><i class="fa fa-times"></i></a>
|
2020-08-20 12:56:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-25 10:00:10 +00:00
|
|
|
|
2020-10-23 06:43:42 +00:00
|
|
|
|
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "root.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('root.index') }}" class="text-white"><img src="{{asset("/images/icons/statistics.svg")}}" class="fa"><span class="ml-4px">Statistik</span></a></h3><span class="tooltiptext">Statistik</span></div>
|
2020-10-23 06:43:42 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@if(auth()->user()->can('user.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "users.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('users.index') }}" class="text-white"><img src="{{asset("/images/icons/users-hvid.svg")}}" class="fa"><span class="ml-4px">Brugere</span></a></h3><span class="tooltiptext">Brugere</span></div>
|
2020-06-15 06:56:21 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('roles.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "roles.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('roles.index') }}" class="text-white"><img src="{{asset("/images/icons/role.svg")}}" class="fa"><span class="ml-4px">Roller</span></a></h3><span class="tooltiptext">Roller</span></div>
|
2020-06-30 09:49:17 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('news.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "news.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('news.index') }}" class="text-white"><img src="{{asset("/images/icons/news.svg")}}" class="fa"><span class="ml-4px">Nyheder</span></a></h3><span class="tooltiptext">Nyheder</span></div>
|
2020-08-06 10:21:19 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('menuplan.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "menu-plans.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('menu-plans.index') }}" class="text-white"><img src="{{asset("/images/icons/Menuplan.svg")}}" class="fa"><span class="ml-4px">Menuplan</span></a></h3><span class="tooltiptext">Menuplan</span></div>
|
2020-06-15 06:56:21 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('event.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "events.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('events.index') }}" class="text-white"><img src="{{asset("/images/icons/Aktiviteter.svg")}}" class="fa"><span class="ml-4px">Aktiviteter</span></a></h3><span class="tooltiptext">Aktiviteter</span></div>
|
2020-06-29 08:56:53 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('washing.machine.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "washing-machines.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('washing-machines.index') }}" class="text-white"><img src="{{asset("/images/icons/wash.svg")}}" class="fa"><span class="ml-4px">Vaskemaskiner</span></a></h3><span class="tooltiptext">Vaskemaskiner</span></div>
|
2020-06-24 12:19:55 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('washing.machine.reservation.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "washing-reservations.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('washing-reservations.index') }}" class="text-white"><img src="{{asset("/images/icons/wash_res.svg")}}" class="fa"><span class="ml-4px">Reservationer</span></a></h3><span class="tooltiptext">Reservationer</span></div>
|
2020-07-01 07:27:18 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('contact.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "contacts.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('contacts.index') }}" class="text-white"><img src="{{asset("/images/icons/phone.svg")}}" class="fa"><span class="ml-4px">Kontakter</span></a></h3><span class="tooltiptext">Kontakter</span></div>
|
2020-06-30 09:38:28 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('guides.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "guides.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('guides.index') }}" class="text-white"><img src="{{asset("/images/icons/Vejledninger.svg")}}" class="fa"><span class="ml-4px">Vejledning</span></a></h3><span class="tooltiptext">Vejledning</span></div>
|
2020-08-04 11:21:23 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
|
|
|
@if(auth()->user()->can('feedback.show'))
|
2020-10-23 06:43:42 +00:00
|
|
|
<div class="segment letterSpaceingNavBar @if(\Illuminate\Support\Facades\Request::route()->getName() == "feedbacks.index") active @endif">
|
2020-11-26 09:19:12 +00:00
|
|
|
<div class="tooltip"><h3 class="text-white"><a href="{{ route('feedbacks.index') }}" class="text-white"><img src="{{asset("/images/icons/feedback.svg")}}" class="fa"><span class="ml-4px">Feedback</span></a></h3><span class="tooltiptext">Feedback</span></div>
|
2020-06-29 08:14:47 +00:00
|
|
|
</div>
|
2020-08-31 07:36:10 +00:00
|
|
|
@endif
|
2020-06-15 06:56:21 +00:00
|
|
|
</div>
|
2020-08-21 06:45:39 +00:00
|
|
|
<div class="w-85" style="background-color: #cccccc;">
|
2020-06-15 06:56:21 +00:00
|
|
|
<div class="directorypath text-white">
|
2020-06-17 09:28:48 +00:00
|
|
|
<a href="{{ route('root.index') }}" class="text-white">Home</a> / @yield("path")
|
2020-06-15 06:56:21 +00:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
@yield("content")
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-25 10:00:10 +00:00
|
|
|
<script>
|
|
|
|
if(localStorage.getItem("collapsed") == "true")
|
|
|
|
closeNav();
|
2020-08-21 06:45:39 +00:00
|
|
|
|
2020-08-25 10:00:10 +00:00
|
|
|
$('.segment.active > .tooltip > h3 > a').click(function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
</script>
|
2020-06-15 06:56:21 +00:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<script src="{{ mix("/js/app.js") }}"></script>
|
2020-08-11 08:38:49 +00:00
|
|
|
<script src="{{ asset("/js/jquery.are-you-sure.js") }}"></script>
|
2020-08-21 06:45:39 +00:00
|
|
|
<script>
|
2020-08-24 08:17:08 +00:00
|
|
|
function fixpls() {
|
|
|
|
document.getElementsByClassName("nav")[0].style.transition = "width .5s";
|
|
|
|
document.getElementsByClassName("w-85")[0].style.transition = "width .5s";
|
|
|
|
}
|
2020-08-20 12:56:11 +00:00
|
|
|
</script>
|
2020-09-18 08:04:33 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ asset("/DataTables/datatables.css") }}">
|
|
|
|
<script type="text/javascript" charset="utf8" src="{{asset("/DataTables/datatables.js")}}"></script>
|
2020-06-15 06:56:21 +00:00
|
|
|
@yield("scripts")
|
|
|
|
</body>
|
|
|
|
</html>
|