@php $supportTicket = app()->make(\App\Models\Collection\Support\SupportTicket::class); @endphp @foreach($tickets as $ticket) @endforeach
{{ __('views.support.index_table.ticket_number') }} {{ __('views.support.index_table.status') }} {{ __('views.support.index_table.request_type') }} {{ __('views.support.index_table.request_reason') }} {{ __('views.support.index_table.names') }} {{ __('views.support.index_table.phone_number') }} {{ __('views.support.index_table.cedula') }} {{ __('views.support.index_table.origin') }} {{ __('views.support.index_table.created_at') }} {{ __('views.support.index_table.updated_at') }} {{ __('views.support.index_table.action') }}
{{ $ticket->external_id }} @php $status = $ticket::getStatusDescription($ticket->status); $background = match ($status) { __('support_ticket.status.' . $supportTicket::STATUS_RECEIVED) => 'border-warning text-warning', __('support_ticket.status.' . $supportTicket::STATUS_PROCESSING) => 'border-secondary text-secondary', __('support_ticket.status.' . $supportTicket::STATUS_COMPLETED) => 'border-success text-success', default => 'border-dark text-dark', } @endphp {{$status}} {{ strip_tags($ticket->type) }} {{ strip_tags($ticket->reason) }} {{ $ticket->client_name }} {{ $ticket->client_phone }} {{ $ticket->document }} {{ $ticket->initiator }} {{ toDate($ticket->created_at) }} {{ toDate($ticket->updated_at) }}
@if($authUserRole === 1) @endif