68 lines
3.3 KiB
PHP
68 lines
3.3 KiB
PHP
@extends('layouts.panel')
|
|
|
|
@section('navigation')
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="{{ route('home') }}">Home</a></li>
|
|
<li class="active"><a>Attraction Status</a></li>
|
|
@if(Route::has('photo'))
|
|
<li><a href="{{ route('photo') }}">ActionFoto's</a></li>
|
|
@endif
|
|
<li><a href="{{ route('shows') }}">Show</a></li>
|
|
<!-- <li><a href="status.php">Attraction Status</a></li>
|
|
<li><a href="photo.php">Photo's</a></li>
|
|
<li><a href="show.php">Show</a></li>
|
|
<li><a href="store.php">Store</a></li> -->
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ Auth::user()->username() }}<span class="caret"></span></a><ul class="dropdown-menu">
|
|
<li><a href="{{ route('profile.home') }}">Profile</a></li>
|
|
@if(Auth::user()->is_admin || Auth::user()->is_root)
|
|
<li><a href="admin/">Admin</a></li>
|
|
<li role="separator" class="divider"></li>
|
|
@endif
|
|
<li><a href="{{ route('logout') }}">Logout</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="wrapper">
|
|
<div class="row x">
|
|
@php($data = \App\Status::loadData())
|
|
@if(!empty($data))
|
|
@foreach($data as $region)
|
|
<div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 y">
|
|
<div class="panel panel-theme">
|
|
<div class="panel-heading">
|
|
<h4 class='panel-title'>{{ \App\Color\MinecraftColor::stripColor($region->name) }}</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
@foreach($region->attractions as $attraction)
|
|
<div class="col-xs-12 col-lg-6 col-md-6 col-sm-6">
|
|
<p><span class='col-xs-12 col-sm-12 col-md-12 col-lg-12'><strong><a href="{{ route('ridecount', ['attraction_id' => $attraction->id]) }}" style='text-decoration: none; color: {{ \App\Color\MinecraftColor::color($attraction->name) }}'>{{ \App\Color\MinecraftColor::stripColor($attraction->name) }}</a>:</strong></span> <span class='status col-xs-12 col-sm-12 col-md-12 col-lg-12' style='background-color: {{ \App\Color\MinecraftColor::color($attraction->status) }};'>{{ \App\Color\MinecraftColor::stripColor($attraction->status) }}</span></p>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
@else
|
|
<div class="col-lg-3 col-md-6 col-sm-6 col-xs-12 y">
|
|
<div class="panel panel-theme">
|
|
<div class="panel-heading">
|
|
<h4 class='panel-title'>No Data</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<p>No Regions with attractions found</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endsection
|