phpvms/resources/views/layouts/default/users/table.blade.php

49 lines
1.8 KiB
PHP
Raw Normal View History

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