@extends('Component.layout') @section('title', 'Parent Tickets - Iqra Teacher Portal') @section('breadcrumb', 'Parent Tickets') @section('content')

Parent Tickets

Manage support tickets from parents of students in your classes

@if(session('success'))
{{ session('success') }}
@endif
@if($tickets->count() > 0)
@foreach($tickets as $ticket) @endforeach
Student Subject Status Date Action
{{ $ticket->student->first_name }} {{ $ticket->student->surname }}
Class: {{ $ticket->student->schoolClass->name ?? 'N/A' }}
{{ $ticket->subject }}
Ticket #{{ str_pad($ticket->id, 5, '0', STR_PAD_LEFT) }}
@if($ticket->status === 'open') Open @elseif($ticket->status === 'resolved') Answered @elseif($ticket->status === 'closed') Closed @endif
{{ $ticket->created_at->format('M d, Y') }}
{{ $ticket->created_at->format('h:i A') }}
@else

No Tickets Found

There are no parent tickets for your classes at the moment.

@endif
@endsection