3
0
Fork 0
This repository has been archived on 2024-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
ThemeParkPlus-Panel/resources/views/status.blade.php
2021-06-27 21:01:43 +02:00

42 lines
1.9 KiB
PHP

@extends('layouts.main')
@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