Fixing some styling on the frontend

This commit is contained in:
Nabeel Shahzad
2018-04-03 19:21:42 -05:00
parent 4d3fb5b873
commit 6fb66a1d80
20 changed files with 256 additions and 245 deletions
@@ -4,7 +4,7 @@
@section('content')
<div class="row" style="margin-bottom: 30px;">
<div class="col-12">
<h2 class="description">{{ $airport->full_name }}</h2>
<h2>{{ $airport->full_name }}</h2>
</div>
{{-- Show the weather widget in one column --}}
@@ -24,32 +24,84 @@
]) }}
</div>
</div>
<div class="row" style="margin-bottom: 30px;">
<div class="row">
{{-- There are files uploaded and a user is logged in--}}
@if($airport->files && Auth::check())
@if(count($airport->files) > 0 && Auth::check())
<div class="col-12">
<h3 class="description">Downloads</h3>
<h3>Downloads</h3>
@include('downloads.table', ['files' => $airport->files])
</div>
@endif
</div>
<div class="row">
<div class="col-md-12">
<h3 class="description">Inbound Flights</h3>
<div class="col-6">
<h5>Inbound Flights</h5>
@if(!$inbound_flights)
<div class="jumbotron text-center">
no flights found
</div>
@else
@each('airports.table', $inbound_flights, 'flight')
<table class="table table-striped table-condensed">
<thead>
<tr>
<th class="text-left">Ident</th>
<th class="text-left">From</th>
<th>Departure</th>
<th>Arrival</th>
</tr>
</thead>
@foreach($inbound_flights as $flight)
<tr>
<td class="text-left">
<a href="{{ route('frontend.flights.show', [$flight->id]) }}">
{{ $flight->ident }}
</a>
</td>
<td class="text-left">{{ $flight->dpt_airport->name }}
(<a href="{{route('frontend.airports.show',
['id'=>$flight->dpt_airport->icao])}}">{{$flight->dpt_airport->icao}}</a>)
</td>
<td>{{ $flight->dpt_time }}</td>
<td>{{ $flight->arr_time }}</td>
</tr>
@endforeach
</table>
@endif
<h3 class="description">Outbound Flights</h3>
</div>
<div class="col-6">
<h5>Outbound Flights</h5>
@if(!$outbound_flights)
<div class="jumbotron text-center">
no flights found
</div>
@else
@each('airports.table', $outbound_flights, 'flight')
<table class="table table-striped table-condensed">
<thead>
<tr>
<th class="text-left">Ident</th>
<th class="text-left">To</th>
<th>Departure</th>
<th>Arrival</th>
</tr>
</thead>
@foreach($outbound_flights as $flight)
<tr>
<td class="text-left">
<a href="{{ route('frontend.flights.show', [$flight->id]) }}">
{{ $flight->ident }}
</a>
</td>
<td class="text-left">{{ $flight->arr_airport->name }}
(<a href="{{route('frontend.airports.show',
['id'=>$flight->arr_airport->icao])}}">{{$flight->arr_airport->icao}}</a>)
</td>
<td>{{ $flight->dpt_time }}</td>
<td>{{ $flight->arr_time }}</td>
</tr>
@endforeach
</table>
@endif
</div>
</div>