2017-12-02 07:21:48 +08:00
|
|
|
@inject('moduleSvc', 'App\Services\ModuleService')
|
2017-06-09 02:28:26 +08:00
|
|
|
<!DOCTYPE html>
|
2017-07-28 20:13:52 +08:00
|
|
|
<html lang="en">
|
|
|
|
|
2017-08-03 02:13:08 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
2017-12-20 05:19:06 +08:00
|
|
|
<title>@yield('title') - {!! config('app.name') !!}</title>
|
2017-08-03 02:13:08 +08:00
|
|
|
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
|
|
|
|
name='viewport'/>
|
|
|
|
<!-- Fonts and icons -->
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet"/>
|
2017-12-28 05:54:32 +08:00
|
|
|
|
2017-08-03 02:13:08 +08:00
|
|
|
<link rel="stylesheet"
|
|
|
|
href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css"/>
|
2017-12-28 05:54:32 +08:00
|
|
|
{{--<link href="https://use.fontawesome.com/releases/v5.0.2/css/all.css" rel="stylesheet">--}}
|
2017-12-18 06:58:53 +08:00
|
|
|
|
|
|
|
<link href="{!! public_asset('/assets/frontend/css/bootstrap.min.css') !!}" rel="stylesheet"/>
|
|
|
|
<link href="{!! public_asset('/assets/vendor/select2/dist/css/select2.min.css') !!}" rel="stylesheet"/>
|
|
|
|
<link href="{!! public_asset('/assets/frontend/css/now-ui-kit.css') !!}" rel="stylesheet"/>
|
|
|
|
<link href="{!! public_asset('/assets/frontend/css/styles.css') !!}" rel="stylesheet"/>
|
2017-08-03 02:13:08 +08:00
|
|
|
|
2017-12-20 07:30:30 +08:00
|
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css"
|
|
|
|
integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ=="
|
|
|
|
crossorigin=""/>
|
|
|
|
|
2017-12-20 05:19:06 +08:00
|
|
|
<style>
|
|
|
|
.font-large {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-medium {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2017-08-03 02:13:08 +08:00
|
|
|
@yield('css')
|
2017-06-09 02:28:26 +08:00
|
|
|
|
2017-12-20 07:30:30 +08:00
|
|
|
<script>
|
|
|
|
@if (Auth::user())
|
|
|
|
const PHPVMS_USER_API_KEY = "{!! Auth::user()->api_key !!}";
|
|
|
|
@else
|
|
|
|
const PHPVMS_USER_API_KEY = false;
|
|
|
|
@endif
|
|
|
|
</script>
|
|
|
|
|
2017-06-09 02:28:26 +08:00
|
|
|
</head>
|
|
|
|
|
2017-08-03 02:13:08 +08:00
|
|
|
<body>
|
|
|
|
<!-- Navbar -->
|
|
|
|
<nav class="navbar navbar-toggleable-md" style="background: #067ec1;">
|
|
|
|
<div class="container" style="width: 85%!important;">
|
|
|
|
<div class="navbar-translate">
|
|
|
|
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
|
|
|
|
data-target="#navigation" aria-controls="navigation-index" aria-expanded="false"
|
|
|
|
aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-bar bar1"></span>
|
|
|
|
<span class="navbar-toggler-bar bar2"></span>
|
|
|
|
<span class="navbar-toggler-bar bar3"></span>
|
|
|
|
</button>
|
|
|
|
<p class="navbar-brand text-white" data-placement="bottom" target="_blank">
|
2017-08-10 23:36:55 +08:00
|
|
|
<a href="{!! url('/') !!}">
|
2017-12-28 05:54:32 +08:00
|
|
|
<img src="{!! public_asset('/assets/frontend/img/logo_blue_bg.svg') !!}" width="135px" style=""/>
|
2017-08-10 23:36:55 +08:00
|
|
|
</a>
|
2017-08-03 02:13:08 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
2017-12-15 06:38:29 +08:00
|
|
|
<div class="collapse navbar-collapse justify-content-end" id="navigation">
|
2017-08-03 02:13:08 +08:00
|
|
|
<ul class="navbar-nav">
|
2017-12-28 05:54:32 +08:00
|
|
|
|
|
|
|
@if(Auth::check())
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/dashboard') !!}">
|
|
|
|
<i class="fa fa-tachometer"></i>
|
|
|
|
<p>Dashboard</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/livemap') !!}">
|
|
|
|
<i class="fa fa-globe"></i>
|
|
|
|
<p>Live Map</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
@if(!Auth::check())
|
2017-08-10 13:31:13 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/login') !!}">
|
2017-12-28 05:54:32 +08:00
|
|
|
<i class="fa fa-sign-in"></i>
|
2017-08-10 13:31:13 +08:00
|
|
|
<p>Login</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/register') !!}">
|
2017-12-28 05:54:32 +08:00
|
|
|
<i class="fa fa-id-card-o"></i>
|
2017-08-10 13:31:13 +08:00
|
|
|
<p>Register</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-12-02 07:21:48 +08:00
|
|
|
|
|
|
|
{{-- Show the module links for being logged out --}}
|
|
|
|
@foreach($moduleSvc->getFrontendLinks($logged_in=false) as &$link)
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url($link['url']) !!}">
|
|
|
|
<i class="{!! $link['icon'] !!}"></i>
|
|
|
|
<p>{!! $link['title'] !!}</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
|
2017-08-10 13:31:13 +08:00
|
|
|
@else
|
2017-12-02 07:21:48 +08:00
|
|
|
|
2017-08-10 13:31:13 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/flights') !!}">
|
2017-12-28 05:54:32 +08:00
|
|
|
<i class="fa fa-plane"></i>
|
2017-08-10 13:31:13 +08:00
|
|
|
<p>Flights</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/pireps') !!}">
|
2017-12-28 05:54:32 +08:00
|
|
|
<i class="fa fa-cloud-upload"></i>
|
2017-08-10 13:31:13 +08:00
|
|
|
<p>PIREPs</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/profile') !!}">
|
2017-12-28 05:54:32 +08:00
|
|
|
<i class="fa fa-user-circle-o"></i>
|
2017-08-10 13:31:13 +08:00
|
|
|
<p>Profile</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-12-16 02:36:13 +08:00
|
|
|
|
|
|
|
@role('admin')
|
2017-08-10 13:31:13 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/admin') !!}">
|
2017-12-28 05:54:32 +08:00
|
|
|
<i class="fa fa-circle-o-notch"></i>
|
2017-08-10 13:31:13 +08:00
|
|
|
<p>Admin</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-12-16 02:36:13 +08:00
|
|
|
@endrole
|
2017-12-02 07:21:48 +08:00
|
|
|
|
|
|
|
{{-- Show the module links for being logged out --}}
|
|
|
|
@foreach($moduleSvc->getFrontendLinks($logged_in=true) as &$link)
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url($link['url']) !!}">
|
|
|
|
<i class="{!! $link['icon'] !!}"></i>
|
|
|
|
<p>{!! $link['title'] !!}</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
|
2017-08-10 13:31:13 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{!! url('/logout') !!}">
|
2017-12-28 05:54:32 +08:00
|
|
|
<i class="fa fa-external-link-square"></i>
|
2017-08-10 13:31:13 +08:00
|
|
|
<p>Log Out</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
2017-07-28 20:13:52 +08:00
|
|
|
</ul>
|
2017-06-09 02:28:26 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-07-28 20:13:52 +08:00
|
|
|
</nav>
|
2017-08-03 02:13:08 +08:00
|
|
|
<!-- End Navbar -->
|
2017-12-14 13:12:23 +08:00
|
|
|
<div class="clearfix" style="height: 25px;"></div>
|
2017-08-03 02:13:08 +08:00
|
|
|
<div class="wrapper">
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="container-fluid" style="width: 85%!important;">
|
2017-12-18 06:58:53 +08:00
|
|
|
@include('layouts.default.flash.message')
|
2017-08-03 02:13:08 +08:00
|
|
|
@yield('content')
|
|
|
|
</div>
|
|
|
|
<div class="clearfix" style="height: 200px;"></div>
|
2017-07-28 20:13:52 +08:00
|
|
|
</div>
|
2017-06-09 02:28:26 +08:00
|
|
|
|
2017-12-20 05:19:06 +08:00
|
|
|
<script src="https://cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js"></script>
|
2017-12-18 06:58:53 +08:00
|
|
|
<script src="{!! public_asset('/assets/frontend/js/core/jquery.3.2.1.min.js') !!}" type="text/javascript"></script>
|
|
|
|
<script src="{!! public_asset('/assets/frontend/js/core/tether.min.js') !!}" type="text/javascript"></script>
|
|
|
|
<script src="{!! public_asset('/assets/frontend/js/core/bootstrap.min.js') !!}" type="text/javascript"></script>
|
|
|
|
<script src="{!! public_asset('/assets/frontend/js/plugins/bootstrap-switch.js') !!}"></script>
|
|
|
|
<script src="{!! public_asset('/assets/frontend/js/plugins/nouislider.min.js') !!}" type="text/javascript"></script>
|
|
|
|
<script src="{!! public_asset('/assets/frontend/js/plugins/bootstrap-datepicker.js') !!}" type="text/javascript"></script>
|
|
|
|
<script src="{!! public_asset('/assets/frontend/js/now-ui-kit.js') !!}" type="text/javascript"></script>
|
|
|
|
<script src="{!! public_asset('/assets/vendor/select2/dist/js/select2.js') !!}"></script>
|
2017-12-20 07:30:30 +08:00
|
|
|
|
2017-12-21 01:28:21 +08:00
|
|
|
{{-- THESE LIBRARIES ARE REQUIRED FOR THINGS TO WORK PROPERLY! --}}
|
2017-12-20 07:30:30 +08:00
|
|
|
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js"
|
|
|
|
integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log=="
|
|
|
|
crossorigin=""></script>
|
2017-12-21 01:28:21 +08:00
|
|
|
<script src="{!! public_asset('/assets/vendor/leaflet/leaflet.geodesic.js') !!}?v={!! time() !!}"></script>
|
2017-12-28 05:54:32 +08:00
|
|
|
<script src="{!! public_asset('/assets/vendor/leaflet-ajax/dist/leaflet.ajax.min.js') !!}?v={!! time() !!}"></script>
|
2017-12-21 01:28:21 +08:00
|
|
|
<script src="{!! public_asset('/assets/system/js/system.js') !!}?v={!! time() !!}"></script>
|
2017-12-20 05:19:06 +08:00
|
|
|
|
2017-08-17 07:18:47 +08:00
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(".select2").select2();
|
|
|
|
});
|
|
|
|
</script>
|
2017-06-09 03:16:50 +08:00
|
|
|
|
2017-07-28 20:13:52 +08:00
|
|
|
@yield('scripts')
|
2017-06-09 02:28:26 +08:00
|
|
|
|
|
|
|
</body>
|
2017-06-09 03:16:50 +08:00
|
|
|
</html>
|