@php $supportTicketLog = app()->make(\App\Models\Collection\Support\SupportTicketLog::class); @endphp @foreach($ticket->logs as $log) @endforeach
ID {{ __('views.support.logs_table.user') }} {{ __('views.support.logs_table.action') }} {{ __('views.support.logs_table.context') }} {{ __('views.support.logs_table.created_at') }}
{{ $log->id }} {{ $log->user->nombre }} {{ $log::getActionDescription($log->action) }} @if($log->action === $supportTicketLog::ACTION_CHANGE_STATUS)
{{ __('admin.from') }}: {{ $supportTicket::getStatusDescription($log->context['from'] ?? 0) }}
{{ __('admin.to') }}: {{ $supportTicket::getStatusDescription($log->context['to'] ?? 0) }}
@elseif($log->action === $supportTicketLog::ACTION_CHANGE_COMMENT)
{{ $log->context['comment'] ?? '' }}
@else {{ json_encode($log->context) }} @endif
{{ toDate($log->created_at) }}
@include('livewire.support.include.loading')