2018-01-20 06:07:31 +08:00
|
|
|
<table class="table table-hover" id="users-table">
|
|
|
|
<thead>
|
|
|
|
<th></th>
|
2018-05-19 03:18:12 +08:00
|
|
|
<th>@lang('common.name')</th>
|
2018-01-20 06:07:31 +08:00
|
|
|
<th style="text-align: center"></th>
|
2018-05-19 03:18:12 +08:00
|
|
|
<th style="text-align: center">@lang('common.airline')</th>
|
2018-05-18 06:03:30 +08:00
|
|
|
<th style="text-align: center">@lang('frontend.users.location')</th>
|
2018-05-19 03:18:12 +08:00
|
|
|
<th style="text-align: center">{{ trans_choice('common.flight', 2) }}</th>
|
|
|
|
<th style="text-align: center">{{ trans_choice('common.hour', 2) }}</th>
|
2018-01-20 06:07:31 +08:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($users as $user)
|
|
|
|
<tr>
|
|
|
|
<td style="width: 80px;">
|
|
|
|
<div class="photo-container">
|
2018-05-16 14:47:31 +08:00
|
|
|
@if ($user->avatar == null)
|
|
|
|
<img class="rounded-circle"
|
|
|
|
src="{{ $user->gravatar(256) }}&s=256"/>
|
|
|
|
@else
|
|
|
|
<img src="{{ $user->avatar->url }}">
|
|
|
|
@endif
|
2018-01-20 06:07:31 +08:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<a href="{{ route('frontend.profile.show.public', ['id' => $user->id]) }}">
|
|
|
|
{{ $user->name }}
|
2018-01-20 06:07:31 +08:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
|
|
|
@if(filled($user->country))
|
2018-03-13 06:58:12 +08:00
|
|
|
<span class="flag-icon flag-icon-{{ $user->country }}"
|
|
|
|
title="{{ $country->alpha2($user->country)['name'] }}"></span>
|
2018-01-20 06:07:31 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td class="text-center">{{ $user->airline->icao }}</td>
|
2018-02-12 23:47:12 +08:00
|
|
|
<td class="text-center">
|
|
|
|
@if($user->current_airport)
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ $user->curr_airport_id }}
|
2018-02-12 23:47:12 +08:00
|
|
|
@else
|
|
|
|
-
|
|
|
|
@endif
|
|
|
|
</td>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td align="center">{{ $user->flights }}</td>
|
|
|
|
<td align="center">{{ \App\Facades\Utils::minutesToTimeString($user->flight_time) }}</td>
|
2018-01-20 06:07:31 +08:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|