@extends('layouts.app')
@section('title', 'Tickets')
@section('page-title', 'Gestión de Tickets')
@section('content')
| ID | Título | Proyecto | Solicitante | Asignado a | Prioridad | Estado | @if(in_array(auth()->user()->role, ['responsable', 'ingeniero', 'supervisor', 'administrador']))Tiempo | @endifFecha | Acciones |
|---|---|---|---|---|---|---|---|---|---|
| {{ $ticket->ticket_number }} @if(isset($ticket->unreadCount) && $ticket->unreadCount > 0) {{ $ticket->unreadCount }} @endif | {{ Str::limit($ticket->title, 50) }} @if($ticket->isOverdue()) @endif | @if($ticket->project) {{ $ticket->project->name }} @else - @endif | {{ $ticket->requester->name }} | @if($ticket->assignedUser) {{ $ticket->assignedUser->name }} @else Sin asignar @endif | {{ ucfirst($ticket->priority) }} | {{ ucfirst(str_replace('_', ' ', $ticket->status)) }} | @if(in_array(auth()->user()->role, ['responsable', 'ingeniero', 'supervisor', 'administrador']))@php $totalTime = $ticket->getTotalWorkTime(); @endphp @if($totalTime > 0) {{ \App\Models\TicketWorkSession::formatDuration($totalTime) }} @else - @endif | @endif{{ $ticket->created_at->format('d/m/Y') }} | |
|
|
|||||||||