{{ __('views.telephony.history.index_table.bucket_id') }}:
{{ __('views.telephony.history.index_table.telephone') }}:
{{ $history->telephone }}
{{ __('views.telephony.history.index_table.document') }}:
{{ $history->document ?? '---' }}
{{ __('views.telephony.history.index_table.communication_id') }}:
{{ $history->communication_id ?? '---' }}
{{ __('views.telephony.history.index_table.status') }}:
@php
$statusKey = match ((int) $history->status) {
\App\Models\Telephony\History::STATUS_FAILED => 'status_failed',
\App\Models\Telephony\History::STATUS_SUCCEED => 'status_success',
\App\Models\Telephony\History::STATUS_WAITING => 'status_waiting',
default => null,
};
$statusBadgeClass = match ((int) $history->status) {
\App\Models\Telephony\History::STATUS_FAILED => 'bg-danger',
\App\Models\Telephony\History::STATUS_SUCCEED => 'bg-success',
\App\Models\Telephony\History::STATUS_WAITING => 'bg-warning',
default => 'bg-secondary',
};
@endphp
@if($statusKey)
{{ __('views.telephony.history.'.$statusKey) }}
@endif
{{ __('views.telephony.history.index_table.created_at') }}:
{{ $history->created_at ? $history->created_at->toDateTimeString() : '' }}
{{ __('views.telephony.history.index_table.updated_at') }}:
{{ $history->updated_at ? $history->updated_at->toDateTimeString() : '' }}