@extends('layouts.app') @section('title', 'Created by Me') @section('content')
View all tickets created by you
Total
Open
In Progress
Resolved
Closed
| Ticket # | Reseller | Subject | Category | Sub Category | Priority | Status | Created At | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $ticket->ticket_number }} | @if($ticket->user) @if($ticket->user->reseller && $ticket->user->reseller->name) {{ $ticket->user->reseller->name }} @elseif($ticket->user->company_name) {{ $ticket->user->company_name }} @else {{ $ticket->user->name ?? 'N/A' }} @endif @else N/A @endif | {{ Str::limit($ticket->subject ?? $ticket->description, 50) }} | {{ $ticket->category->name ?? 'N/A' }} | {{ $ticket->subcategory->name ?? 'N/A' }} | @php $priorityColors = [ 'low' => '#6c757d', 'medium' => '#17a2b8', 'high' => '#ffc107', 'urgent' => '#dc3545' ]; $priorityColor = $priorityColors[$ticket->priority] ?? '#6c757d'; @endphp {{ ucfirst($ticket->priority) }} | @php $statusLabel = in_array($ticket->status, ['resolved', 'closed']) ? 'Solved' : ucfirst(str_replace('_', ' ', $ticket->status)); @endphp {{ $statusLabel }} |
{{ $ticket->created_at->format('Y-m-d H:i') }}
{{ $ticket->created_at->diffForHumans() }} |
View Edit |
| No tickets found | ||||||||