@extends('layouts.admin') @section('title', 'Support Tickets') @section('page-title', 'Support Tickets') @section('content')
Support Tickets
@foreach($tickets as $ticket) @endforeach
# Subject User Category Priority Status Assigned To Last Update Actions
{{ $ticket->id }} {{ $ticket->subject }}
{{ Str::limit($ticket->description, 50) }}
{{ strtoupper(substr($ticket->user->name, 0, 1)) }}
{{ $ticket->user->name }}
{{ $ticket->user->email }}
{{ $ticket->category }} @if($ticket->priority == 'high') High @elseif($ticket->priority == 'medium') Medium @else Low @endif @if($ticket->status == 'open') Open @elseif($ticket->status == 'in_progress') In Progress @elseif($ticket->status == 'resolved') Resolved @else Closed @endif @if($ticket->assignedTo) {{ $ticket->assignedTo->name }} @else Unassigned @endif {{ $ticket->updated_at->format('M j, Y H:i') }}
Showing {{ $tickets->firstItem() }} to {{ $tickets->lastItem() }} of {{ $tickets->total() }} tickets
{{ $tickets->links() }}
@endsection @push('scripts') @endpush