@php($title = 'Support Tickets') @php($heading = 'Support Tickets') @php($sidebar = view()->make('dashboard.partials.customer-sidebar')->render()) @extends('layouts.dashboard', compact('title','heading','sidebar')) @section('content')
| Ticket | Subject | Status | Updated | Action |
|---|---|---|---|---|
|
#{{ $t->ticket_code ?? ($t->ticket_id ?? $t->id ?? '—') }}
@if(($t->customer_unread ?? false))
@endif
@if(($t->created_at ?? null) && \Illuminate\Support\Carbon::parse($t->created_at)->gte(now()->subDay()))
New
@endif
|
{{ $t->subject ?? '—' }} |
{{ ucfirst($t->status ?? 'unknown') }}
@if(($t->latestReply ?? null) && ($t->latestReply->is_admin ?? false) && \Illuminate\Support\Carbon::parse($t->latestReply->created_at)->gte(now()->subDay()))
New reply
@endif
|
{{ ($t->latestReply ?? null) ? \Illuminate\Support\Carbon::parse($t->latestReply->created_at)->toDayDateTimeString() : \Illuminate\Support\Carbon::parse($t->created_at ?? $t->updated_at ?? now())->toDayDateTimeString() }} | View |
| No tickets found | ||||