flexisip-account-manager/flexiapi/resources/views/parts/call_logs/table.blade.php
2025-06-19 10:13:53 +02:00

42 lines
1.3 KiB
PHP

<table>
<thead>
<tr>
<th>{{ __('From') }}</th>
<th>{{ __('To') }}</th>
<th><i class="ph ph-clock</i>"></th>
</tr>
</thead>
<tbody>
@if ($calls->isEmpty())
<tr class="empty">
<td colspan="3">{{ __('Empty') }}</td>
</tr>
@endif
@foreach ($calls as $call)
<tr>
<td class="line">
@if (isset($account) && $account->identifier != $call->from)
<b>{{ $call->from }}</b>
@else
{{ $call->from }}
@endif
</td>
<td class="line">
@if (isset($account) && $account->identifier != $call->to)
<b>{{ $call->to }}</b>
@else
{{ $call->to }}
@endif
</td>
<td class="line">
{{ $call->initiated_at }}
@if ($call->ended_at)
({{ $call->ended_at->diffForHumans($call->initiated_at, true) }})
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
{{ $calls->links('pagination::bootstrap-4') }}