@extends('merchant.layout') @section('title','Support Tickets') @section('content')
{{-- HEADER --}}

Support Tickets

Manage and track your support requests
New Ticket
{{-- CARD --}}
@if(session('success'))
{{ session('success') }}
@endif @if($tickets->isEmpty())

No support tickets yet

@else
@foreach($tickets as $ticket) {{-- ID --}} {{-- SUBJECT --}} {{-- PRIORITY --}} {{-- STATUS --}} {{-- LAST UPDATE --}} {{-- ACTION --}} @endforeach
# Subject Priority Status Last Update Action
#{{ $ticket->id }} {{ $ticket->subject }}
{{ $ticket->created_at->format('d M Y') }}
@if($ticket->priority === 'emergency') Emergency @elseif($ticket->priority === 'high') High @else Low @endif {{ ucfirst($ticket->status) }} {{ optional($ticket->replies->last())->created_at ? $ticket->replies->last()->created_at->diffForHumans() : '—' }} View
@endif
@endsection