2017-08-19 01:02:32 +08:00
|
|
|
@extends('admin.app')
|
|
|
|
@section('title', 'Dashboard')
|
|
|
|
@section('content')
|
2019-11-27 22:19:20 +08:00
|
|
|
<div class="content">
|
2019-12-10 04:26:30 +08:00
|
|
|
@if($cron_problem_exists)
|
|
|
|
<div class="alert alert-danger" role="alert">
|
2021-02-14 04:17:16 +08:00
|
|
|
The cron has not run in more than 12 hours; make sure it's setup and check logs at
|
2020-01-16 22:49:28 +08:00
|
|
|
<span class="text-monospace bg-gradient-dark">storage/logs/cron.log</span>.
|
2020-03-06 09:19:12 +08:00
|
|
|
<a href="{{ docs_link('cron') }}" target="_blank">See the docs</a>
|
2019-12-10 04:26:30 +08:00
|
|
|
</div>
|
|
|
|
@endif
|
2019-11-27 22:19:20 +08:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-7">
|
|
|
|
@include('admin.dashboard.news')
|
|
|
|
</div>
|
|
|
|
<div class="col-md-5">
|
|
|
|
@component('admin.components.infobox')
|
|
|
|
@slot('icon', 'pe-7s-users')
|
|
|
|
@slot('type', 'Pilots')
|
|
|
|
@slot('pending', $pending_users)
|
|
|
|
@slot('link', route('admin.users.index').'?state='.UserState::PENDING)
|
|
|
|
@endcomponent
|
|
|
|
|
|
|
|
@component('admin.components.infobox')
|
|
|
|
@slot('icon', 'pe-7s-cloud-upload')
|
|
|
|
@slot('type', 'PIREPs')
|
|
|
|
@slot('pending', $pending_pireps)
|
|
|
|
@slot('link', route('admin.pireps.index').'?search=state:'.PirepState::PENDING)
|
|
|
|
@endcomponent
|
|
|
|
</div>
|
2017-08-19 01:02:32 +08:00
|
|
|
</div>
|
2019-11-27 22:19:20 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
{{--@include('admin.dashboard.pirep_chart')--}}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-19 01:02:32 +08:00
|
|
|
@endsection
|
2018-01-09 06:22:26 +08:00
|
|
|
@section('scripts')
|
2019-11-27 22:19:20 +08:00
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(document).on('submit', 'form.pjax_news_form', function (event) {
|
2018-01-09 06:22:26 +08:00
|
|
|
event.preventDefault();
|
|
|
|
$.pjax.submit(event, '#pjax_news_wrapper', {push: false});
|
2019-11-27 22:19:20 +08:00
|
|
|
});
|
2018-01-09 06:22:26 +08:00
|
|
|
|
2019-11-27 22:19:20 +08:00
|
|
|
/*$(document).on('pjax:complete', function () {
|
|
|
|
$(".select2").select2();
|
|
|
|
});*/
|
|
|
|
});
|
|
|
|
</script>
|
2018-01-09 06:22:26 +08:00
|
|
|
@endsection
|