kuvia/resources/views/layout/template.blade.php
2021-01-12 15:49:45 +01:00

53 lines
2 KiB
PHP

<head>
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/theme.css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<div class="wrapper">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Kuvia</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarColor02">
@auth
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="/d">Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/g">Gallery</a>
</li>
</ul>
@endauth
<ul class="nav navbar-nav float-md-right">
@auth
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Tenant</a>
<div class="dropdown-menu dropdown-menu-right">
@foreach($user_tenants as $tenant)
<a class="dropdown-item" href="/t/select/{{ $tenant->url }}">{{ $tenant->name }}</a>
@endforeach
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/t/new">New Tenant</a>
</div>
</li>
@endauth
</ul>
</div>
</nav>
<div class="container-fluid" style="margin-top: 20px;">
@yield('content')
</div>
</div>
<script src="/js/jquery-3.5.1.min.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script>
@yield('js')
</body>