@extends('backend.partials.master') @section('title') {{ ___('menus.agent_support') }} @endsection @section('maincontent') {{-- The agent's half of support: they open the ticket, the desk routes it. Department and assignee stay in the admin Support module. --}}

{{ ___('label.raise_a_ticket') }}

@csrf
@error('subject') {{ $message }} @enderror
@error('priority') {{ $message }} @enderror

{{ ___('label.my_open_tickets') }}

@forelse($tickets->where('status', '!=', 'Closed') as $t) @empty @endforelse
{{ ___('label.ticket') }}{{ ___('label.subject') }}{{ ___('label.priority') }}{{ ___('label.status') }}
{{ $t->ticket_no }} {{ $t->subject }} {{ admin_label($t->priority) }} {{ admin_label($t->status) }}
{{ ___('label.nothing_open_right_now') }}
@foreach($tickets as $t) @php $cls = $t->status === 'Closed' ? 'success' : ($t->status === 'Pending' ? 'warning' : 'info'); @endphp {{ $t->ticket_no }} {{ $t->subject }} {{ $t->customer_name }} {{ admin_label($t->priority) }} {{ $t->department }} {{ $t->updated_at?->diffForHumans() }} {{ admin_label($t->status) }} @endforeach
@endsection