redesigning the pirep page a bit
This commit is contained in:
@@ -113,8 +113,8 @@ class Pirep extends Model
|
|||||||
*/
|
*/
|
||||||
public function getIdentAttribute(): string
|
public function getIdentAttribute(): string
|
||||||
{
|
{
|
||||||
$flight_id = $this->airline->code;
|
#$flight_id = $this->airline->code;
|
||||||
$flight_id .= $this->flight_number;
|
$flight_id = $this->flight_number;
|
||||||
|
|
||||||
if (filled($this->route_code)) {
|
if (filled($this->route_code)) {
|
||||||
$flight_id .= '/C'.$this->route_code;
|
$flight_id .= '/C'.$this->route_code;
|
||||||
|
|||||||
@@ -4,7 +4,26 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h2>{{ $pirep->ident }}</h2>
|
<h3>{{$pirep->airline->code}}{{ $pirep->ident }}<br />
|
||||||
|
<small>Arrived {{$pirep->created_at->diffForHumans()}}</small></h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-6 text-left">
|
||||||
|
<h4>
|
||||||
|
@if(filled($pirep->dpt_airport->iata))
|
||||||
|
{{ $pirep->dpt_airport->iata }}
|
||||||
|
@endif
|
||||||
|
<small>{{ $pirep->dpt_airport->location }}</small>
|
||||||
|
</h4>
|
||||||
|
<p>
|
||||||
|
<a href="{{route('frontend.airports.show', ['id' => $pirep->dpt_airport_id])}}">
|
||||||
|
{{ $pirep->dpt_airport->full_name }} ({{ $pirep->dpt_airport_id }})</a>
|
||||||
|
<br />
|
||||||
|
{{ $pirep->created_at->toDayDateTimeString() }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-6">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user