@extends('layouts.app') @section('title', 'Soporte | Veltrix v2') @section('page_title', 'Soporte') @section('page_subtitle', 'Gestion operativa en tiempo real') @section('page_icon', 'bx bx-menu-alt-left') @section('content') @php $ticketRows = $tickets instanceof \Illuminate\Support\Collection ? $tickets : collect($tickets ?? []); $eventMap = is_array($eventsByTicket ?? null) ? $eventsByTicket : []; $oldPriority = (string) old('prioridad', 'media'); @endphp
@if ($errors->any())
{{ $errors->first() }}
@endif

Crear Ticket de Soporte

@csrf
Formatos: JPG, PNG, WEBP, GIF. Máximo 5MB.

¿Cómo funciona?

Crea el ticket desde tu empresa y el superadministrador lo verá en su panel de soporte para responder y resolver.

  • Incluye asunto claro y descripción detallada.
  • Adjunta imagen cuando aplique para acelerar la solución.
  • Usa comentarios para seguimiento del caso.

Mis Tickets

@forelse ($ticketRows as $ticket) @php $ticketId = (int) data_get($ticket, 'id', 0); $status = (string) data_get($ticket, 'estado', 'abierto'); $priority = (string) data_get($ticket, 'prioridad', 'media'); $statusClass = match ($status) { 'abierto' => 'text-bg-warning', 'en_proceso' => 'text-bg-primary', 'resuelto', 'cerrado' => 'text-bg-success', default => 'text-bg-secondary', }; $priorityClass = match ($priority) { 'critica' => 'text-bg-danger', 'alta' => 'text-bg-warning', 'media' => 'text-bg-primary', default => 'text-bg-secondary', }; $events = is_array($eventMap[$ticketId] ?? null) ? $eventMap[$ticketId] : []; @endphp @empty @endforelse
ID Asunto Estado / Prioridad Asignado Actualizado Acción
#{{ $ticketId }} {{ (string) data_get($ticket, 'asunto', '') }} {{ (string) data_get($ticket, 'descripcion', '') }} {{ $status }} {{ $priority }} {{ (string) data_get($ticket, 'asignado_a', 'Sin asignar') }} {{ (string) data_get($ticket, 'updated_at', '-') }}
@csrf
Historial @if ($events !== [])
    @foreach (array_slice($events, 0, 15) as $event) @php $attachment = is_array(data_get($event, 'adjunto')) ? data_get($event, 'adjunto') : null; $message = trim((string) data_get($event, 'mensaje_texto', '')); if ($message === '') { $message = 'Adjunto sin comentario.'; } @endphp
  • {{ (string) data_get($event, 'tipo', '-') }} {{ $message }} {{ (string) data_get($event, 'created_at', '-') }}
    @if ($attachment)
    Ver adjunto: {{ (string) data_get($attachment, 'name', 'imagen') }} @if ((bool) data_get($attachment, 'is_image', false))
    {{ (string) data_get($attachment, 'name', 'Adjunto') }}
    @endif
    @endif {{ (string) data_get($event, 'usuario', 'Sistema') }} @if ((string) data_get($event, 'estado_anterior', '') !== '' || (string) data_get($event, 'estado_nuevo', '') !== '') | Estado: {{ (string) data_get($event, 'estado_anterior', '-') }} -> {{ (string) data_get($event, 'estado_nuevo', '-') }} @endif
  • @endforeach
@else Sin eventos todavía. @endif
No hay tickets creados todavía.
@endsection