Add logo to the flights page if its set #417 (#550)

This commit is contained in:
Nabeel S
2020-02-14 18:54:05 -05:00
committed by GitHub
parent 77f2138a1c
commit 2d36376e29

View File

@@ -5,12 +5,17 @@
<div class="col-sm-9"> <div class="col-sm-9">
<h5> <h5>
<a class="text-c" href="{{ route('frontend.flights.show', [$flight->id]) }}"> <a class="text-c" href="{{ route('frontend.flights.show', [$flight->id]) }}">
@if(optional($flight->airline)->logo)
<img src="{{ $flight->airline->logo }}" alt="{{$flight->airline->name}}"
style="max-width: 80px; width: 100%; height: auto;"/>
@endif
{{ $flight->ident }} {{ $flight->ident }}
</a> </a>
</h5> </h5>
</div> </div>
<div class="col-sm-3 text-right"> <div class="col-sm-3 align-top text-right">
{{-- NOTE: {{--
!!! NOTE !!!
Don't remove the "save_flight" class, or the x-id attribute. Don't remove the "save_flight" class, or the x-id attribute.
It will break the AJAX to save/delete It will break the AJAX to save/delete