@extends('layout.mainlayout') @section('content')
| ID | Subject | Department | Priority | Status | TAT | Created | Actions |
|---|---|---|---|---|---|---|---|
| #{{ $t->id }} | {{ $t->subject }} | {{ $t->department->name ?? '—' }} | {{ $t->priority }} | {{ $t->status }} | {{ optional($t->tat_at)->format('d M Y H:i') ?? '—' }} | {{ $t->created_at->format('d M Y H:i') }} | View @if(in_array($t->status, ['RESOLVED'])) {{-- User can close --}} @can('ticket-resolve') @endcan @endif @if(in_array($t->status, ['CLOSED','RESOLVED'])) {{-- Reopen --}} @can('ticket-user') @endcan @endif {{-- Escalate --}} @if(!in_array($t->status, ['CLOSED','ESCALATED'])) @can('ticket-user') @endcan @endif |