29 lines
1.3 KiB
PHP
29 lines
1.3 KiB
PHP
<div wire:loading.class="blurred">
|
|
@if ($bans->total() == 0)
|
|
<span class="text-muted">{{ __('You haven\'t had any moderation action taken against you in the past. Hooray!') }}</span>
|
|
@else
|
|
<div class="table-responsive">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th width="55%">{{ __('Moderator note') }}</th>
|
|
<th>{{ __('Reviewed on') }}</th>
|
|
<th>{{ __('Expiry date') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($bans as $ban)
|
|
<tr>
|
|
<td><code>{{ $ban->moderator_note }}</code></td>
|
|
<td class="text-muted">{{ $ban->created_at->format('m/d/Y h:i:s A (T)') }}</td>
|
|
<td class="text-muted">{{ is_null($ban->expiry_date) ? ($ban->is_poison_ban ? __('Poison') : ($ban->is_warning ? __('Warning') : __('Termination'))) : seconds2human($ban->expiry_date->timestamp - $ban->created_at->timestamp, true) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
{{ $bans->links() }}
|
|
</div>
|
|
@endif
|
|
</div>
|