Show Airline logo / icao to subfleets table (#1121)

Will show the subfleet airline logo or icao in the admin flight create page table.

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
This commit is contained in:
Maximiliano Fallico 2021-04-05 18:05:28 -03:00 committed by GitHub
parent dbfaed0ecc
commit 7502c053bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@
<table class="table table-responsive" id="aircrafts-table"> <table class="table table-responsive" id="aircrafts-table">
@if(count($flight->subfleets)) @if(count($flight->subfleets))
<thead> <thead>
<th>Airline</th>
<th>Type</th> <th>Type</th>
<th>Name</th> <th>Name</th>
<th style="text-align: center;">Actions</th> <th style="text-align: center;">Actions</th>
@ -21,6 +22,12 @@
<tbody> <tbody>
@foreach($flight->subfleets as $sf) @foreach($flight->subfleets as $sf)
<tr> <tr>
<td>@if ($sf->airline->logo)
<img src="{{ $sf->airline->logo }}" style="max-width: 60px; width: 55%; height: auto;">
@else
&nbsp;{{ $sf->airline->icao }}
@endif
</td>
<td>{{ $sf->type }}</td> <td>{{ $sf->type }}</td>
<td>{{ $sf->name }}</td> <td>{{ $sf->name }}</td>
<td style="width: 10%; text-align: center;" class="form-inline"> <td style="width: 10%; text-align: center;" class="form-inline">