Department Operational Tickets

MUNICIPAL DESK

Manage service tickets raised by municipal departments. Update status, adjust priority, and reply to department remarks in real-time.

@if($pendingCount > 0)
{{ $pendingCount }} Ticket(s) Pending Action
@endif
Total Tickets
{{ $totalCount }}

All logged requests

Pending Review
{{ $pendingCount }}

Awaiting action

In Process
{{ $inProcessCount }}

Under field dispatch

Resolved
{{ $resolvedCount }}

Action complete

Active Urgent
{{ $urgentCount }} @if($urgentCount > 0) @endif

High priority focus

to
@if($tickets->isEmpty())

No Department Tickets Found

{{ !empty($search) || $statusFilter || $priorityFilter ? 'No tickets match the selected filters.' : 'No department operational tickets have been raised yet.' }}

@else
@foreach($tickets as $t) @endforeach
Ticket Code Department & Submitter Subject & Category Priority Status Chat Remarks Updated Actions
{{ $t->ticket_code }} {{ $t->created_at->format('d M Y, h:i A') }}
{{ $t->department_name }}
{{ $t->user?->name }} ({{ $t->user?->username ?: 'corp' }})
{{ $t->title }}
{{ $t->category }} @if($t->location) {{ $t->location }} @endif
@if($t->priority === 'urgent') @endif {{ ucfirst($t->priority) }} @if($t->status === 'in_process') @elseif($t->status === 'resolved') @else @endif {{ $t->formatted_status }} {{ $t->messages->count() }} {{ $t->updated_at->diffForHumans() }}
{{ $tickets->links() }}
@endif
@if($selectedTicket)
{{ $selectedTicket->ticket_code }} Current: {{ $selectedTicket->formatted_status }} {{ ucfirst($selectedTicket->priority) }} Priority

{{ $selectedTicket->title }}

Raised by {{ $selectedTicket->department_name }} ({{ $selectedTicket->user?->name }}) • {{ $selectedTicket->category }} • {{ $selectedTicket->created_at->format('d M Y, h:i A') }}

Update Ticket Lifecycle & Priority
@foreach($selectedTicket->messages as $msg) @if($msg->sender_type === 'department')
D
{{ $selectedTicket->department_name }} (Department) {{ $msg->created_at->format('h:i A, d M Y') }}

{{ $msg->message }}

@if($msg->attachment_path) @endif
@else
Om Sai Operations (Admin) {{ $msg->created_at->format('h:i A, d M Y') }}

{{ $msg->message }}

@if($msg->attachment_path) @endif
@endif @endforeach
@if($adminReplyAttachment)
Attachment selected
@endif @error('adminReply') {{ $message }} @enderror
@endif