Heimdall/resources/views/layouts/app.blade.php

127 lines
6.6 KiB
PHP
Raw Normal View History

2018-01-29 20:14:40 +00:00
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ config('app.name') }}</title>
2018-10-17 21:16:23 +00:00
<link rel="apple-touch-icon" sizes="57x57" href="{{ asset('apple-icon-57x57.png') }}">
<link rel="apple-touch-icon" sizes="60x60" href="{{ asset('apple-icon-60x60.png') }}">
<link rel="apple-touch-icon" sizes="72x72" href="{{ asset('apple-icon-72x72.png') }}">
<link rel="apple-touch-icon" sizes="76x76" href="{{ asset('apple-icon-76x76.png') }}">
<link rel="apple-touch-icon" sizes="114x114" href="{{ asset('apple-icon-114x114.png') }}">
<link rel="apple-touch-icon" sizes="120x120" href="{{ asset('apple-icon-120x120.png') }}">
<link rel="apple-touch-icon" sizes="144x144" href="{{ asset('apple-icon-144x144.png') }}">
<link rel="apple-touch-icon" sizes="152x152" href="{{ asset('apple-icon-152x152.png') }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('apple-icon-180x180.png') }}">
<link rel="icon" type="image/png" sizes="192x192" href="{{ asset('android-icon-192x192.png') }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('favicon-32x32.png') }}">
<link rel="icon" type="image/png" sizes="96x96" href="{{ asset('favicon-96x96.png') }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('favicon-16x16.png') }}">
<link rel="mask-icon" href="{{ asset('img/heimdall-logo-small.svg') }}" color="black">
2018-02-09 14:04:18 +00:00
<meta name="msapplication-TileColor" content="#ffffff">
2018-10-17 21:16:23 +00:00
<meta name="msapplication-TileImage" content="{{ asset('ms-icon-144x144.png') }}">
2018-02-09 14:04:18 +00:00
<meta name="theme-color" content="#ffffff">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="{{ asset('css/app.css?v='.config('app.version')) }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('css/all.min.css?v='.config('app.version')) }}" type="text/css" />
2019-01-18 14:07:17 +00:00
<script src="{{ asset('js/fontawesome.js') }}"></script>
2019-06-18 07:46:57 +00:00
@if(config('app.url') !== 'http://localhost')
<base href="{{ config('app.url') }}">
@else
<base href="{{ url('') }}">
@endif
2022-01-18 22:40:09 +00:00
<style id="custom_css">
/* editable using the 'Settings > Advanced > Custom CSS' option */
{!! \App\Setting::fetch('custom_css') !!}
</style>
2018-01-29 20:14:40 +00:00
</head>
<body>
2018-02-04 21:28:11 +00:00
<div id="app"{!! $alt_bg !!}>
<nav class="sidenav">
2018-02-03 15:46:14 +00:00
<a class="close-sidenav" href=""><i class="fas fa-times-circle"></i></a>
@if(isset($all_apps))
2018-02-07 13:37:40 +00:00
<h2>{{ __('app.dash.pinned_items') }}</h2>
<ul id="pinlist">
@foreach($all_apps as $app)
<?php
$active = ((bool)$app->pinned === true) ? 'active' : '';
2022-03-16 18:35:40 +00:00
if($app->title == 'app.dashboard') continue;
?>
2019-06-18 09:51:51 +00:00
<li>{{ $app->title }}<a class="{{ $active }}" data-tag="{{ $tag ?? 0 }}" data-id="{{ $app->id }}" href="{{ route('items.pintoggle', [$app->id]) }}"><i class="fas fa-thumbtack"></i></a></li>
@endforeach
2018-01-29 20:14:40 +00:00
</ul>
@endif
2018-01-29 20:14:40 +00:00
</nav>
<div class="content">
2018-02-01 19:55:03 +00:00
<header class="appheader">
<ul>
2019-06-18 09:51:51 +00:00
<li><a href="{{ route('dash', []) }}">Dash</a></li><li>
<a href="{{ route('items.index', []) }}">Items</a></li>
2018-02-01 19:55:03 +00:00
</ul>
2018-01-29 20:14:40 +00:00
</header>
<main id="main">
2018-02-01 14:45:59 +00:00
@if ($message = Session::get('success'))
2018-02-01 20:29:44 +00:00
<div class="message-container">
2018-02-01 14:45:59 +00:00
<div class="alert alert-success">
<p>{{ $message }}</p>
</div>
2018-02-01 20:29:44 +00:00
</div>
2018-02-01 14:45:59 +00:00
@endif
2018-02-03 15:46:14 +00:00
@if (count($errors) > 0)
2018-02-01 20:29:44 +00:00
<div class="message-container">
2018-02-01 14:45:59 +00:00
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
2018-02-01 20:29:44 +00:00
</div>
2018-02-01 14:45:59 +00:00
@endif
2018-10-16 09:59:35 +00:00
@if($allusers->count() > 1)
<div id="switchuser">
@if($current_user->avatar)
<img class="user-img" src="{{ asset('/storage/'.$current_user->avatar) }}" />
@else
<img class="user-img" src="{{ asset('/img/heimdall-icon-small.png') }}" />
@endif
{{ $current_user->username }}
2018-10-16 09:59:35 +00:00
<a class="btn" href="{{ route('user.select') }}">Switch User</a>
</div>
@endif
2018-01-29 20:14:40 +00:00
@yield('content')
<div id="config-buttons">
2018-10-14 15:17:55 +00:00
2018-02-17 00:13:38 +00:00
@if(Route::is('dash') || Route::is('tags.show'))
2018-02-04 20:50:59 +00:00
<a id="config-button" class="config" href=""><i class="fas fa-exchange"></i></a>
@endif
2019-06-18 09:51:51 +00:00
<a id="dash" class="config" href="{{ route('dash', []) }}"><i class="fas fa-th"></i></a>
2018-10-16 09:59:35 +00:00
@if($current_user->id === 1)
2019-06-18 09:51:51 +00:00
<a id="users" class="config" href="{{ route('users.index', []) }}"><i class="fas fa-user"></i></a>
2018-10-15 13:35:14 +00:00
@endif
2019-06-18 09:51:51 +00:00
<a id="items" class="config" href="{{ route('items.index', []) }}"><i class="fas fa-list"></i></a>
<a id="folder" class="config" href="{{ route('tags.index', []) }}"><i class="fas fa-tag"></i></a>
<a id="settings" class="config" href="{{ route('settings.index', []) }}"><i class="fas fa-cogs"></i></a>
</div>
2018-01-29 20:14:40 +00:00
</main>
</div>
</div>
2022-03-12 23:27:11 +00:00
<script src="{{ asset('js/jquery-3.6.0.min.js') }}"></script>
2018-10-16 11:58:56 +00:00
<script src="{{ asset('js/jquery-ui.min.js') }}"></script>
<script src="{{ asset('js/app.js?v='.config('app.version')) }}"></script>
2018-02-05 19:43:24 +00:00
@yield('scripts')
2022-01-18 22:40:09 +00:00
<script id="custom_js">
/* editable using the 'Settings > Advanced > Custom JavaScript' option */
{!! \App\Setting::fetch('custom_js') !!}
</script>
2018-01-29 20:14:40 +00:00
</body>
</html>