{{-- Header Banner --}}

Account: {{ $customer?->customer_unique_id ?? 'N/A' }}

Support Center

Submit tickets and get assistance from our support team

@if(!$showForm && !$viewingTicketId && $customer) @endif
@if(!$customer)

Customer Profile Not Found

Your PPPoE account is active, but it is not linked to a customer profile. Support tickets require a registered profile. Please contact support to complete your profile.

@else @if(!$showForm && !$viewingTicketId) {{-- Stats Cards --}}
Total Tickets {{ $tickets->count() }}
Open & Pending {{ $this->getOpenCount() }}
Resolved & Closed {{ $this->getResolvedCount() }}
{{-- Tickets List --}}

Your Support Tickets

@if($tickets->isEmpty())

No Tickets Found

You haven't submitted any support tickets yet. If you are experiencing issues, please create a ticket.

@else
@foreach($tickets as $ticket)
{{ $ticket->ticket_no }} {{ str_replace('_', ' ', $ticket->status) }} {{ $ticket->priority }} Priority

{{ $ticket->subject }}

Category: {{ $ticket->category }} • Submitted: {{ $ticket->created_at->diffForHumans() }}

@if(in_array($ticket->status, ['open', 'in_progress'])) @endif
@endforeach
@endif
@endif {{-- Form to Create Ticket --}} @if($showForm)

{{ $editingTicketId ? 'Update Support Ticket' : 'Submit New Support Ticket' }}

{{-- Category --}}
@error('category')

{{ $message }}

@enderror
{{-- Priority --}}
@error('priority')

{{ $message }}

@enderror
{{-- Subject --}}
@error('subject')

{{ $message }}

@enderror
{{-- Description --}}
@error('description')

{{ $message }}

@enderror
{{-- Action Buttons --}}
@endif {{-- Details View --}} @if($viewingTicketId && ($ticket = $this->getViewingTicket()))
{{-- Header --}}
{{ $ticket->ticket_no }} {{ str_replace('_', ' ', $ticket->status) }}

{{ $ticket->subject }}

Category: {{ $ticket->category }} • Submitted: {{ $ticket->created_at->format('M d, Y H:i') }}

@if(in_array($ticket->status, ['open', 'in_progress'])) @endif
{{-- Content --}}
{{-- Description --}}

Problem Description

{{ $ticket->description }}
{{-- Admin Reply --}} @if($ticket->admin_reply)

Reply from Support Team

{{ $ticket->replied_at ? $ticket->replied_at->format('M d, Y H:i') : '' }}
{{ $ticket->admin_reply }}
@else
Awaiting response from our support team. Tickets are usually replied to within a few hours.
@endif
@endif @endif