@extends("client.layouts.app") @section("title", __("admin.tickets.title")) @section("content")

{{ __('client.tickets.page_title') }}

{{ __('client.tickets.page_subtitle') }}

{{ __('client.tickets.open_new') }}
@if($total >= \App\Support\ClientListFilter::TOOLBAR_FROM || $filtered) @include('client.partials.list-toolbar', [ 'action' => route('client.tickets.index'), 'tabs' => ['param' => 'status', 'counts' => $statusCounts, 'current' => $status, 'label' => fn ($s) => __('client.status.'.strtolower(str_replace(' ', '-', $s)))], 'search' => ['value' => request('q', ''), 'placeholder' => __('client.list.search_tickets')], 'selects' => count($departments) > 1 ? [['name' => 'department', 'label' => __('common.misc.all_departments'), 'value' => $department, 'options' => $departments]] : [], 'sorts' => ['recent' => __('client.list.sort_recent'), 'newest' => __('client.list.sort_newest'), 'oldest' => __('client.list.sort_oldest'), 'priority' => __('client.list.sort_priority')], 'sort' => $sort, 'paginator' => $tickets, 'filtered' => $filtered, ]) @endif
@forelse($tickets as $t) @empty @if($filtered) @else @endif @endforelse
{{ __('client.tickets.ticket_prefix') }} {{ __('common.table.department') }} {{ __('common.table.subject') }} {{ __('common.table.priority') }} {{ __('common.table.status') }} {{ __('common.table.last_reply') }}
#{{ $t->tid }} {{ $t->department->name ?? "-" }} {{ Str::limit($t->title, 55) }} {{ __('client.status.' . strtolower($t->priority ?? 'medium')) }} status)) }}">{{ __('client.status.' . strtolower(str_replace(' ', '-', $t->status))) }} {{ $t->last_reply?->diffForHumans() ?? $t->created_at?->diffForHumans() }}

{{ __('client.list.no_matches') }}

{{ __('client.list.clear_filters') }}
👥

{{ __('client.tickets.no_tickets') }}

{{ __('client.tickets.open_first') }}
@if($tickets instanceof \Illuminate\Pagination\LengthAwarePaginator && $tickets->hasPages())
{{ $tickets->links() }}
@endif @endsection