Department Account Portal ID: {{ auth()->user()->username ?: 'corp' }}

{{ auth()->user()->department_name ?: 'Municipal Corporation Desk' }}

Welcome to the municipal operations service desk. Raise operational tickets with custom priorities, monitor work in real-time, submit remarks, and chat directly with Om Sai operations controllers.

@csrf
Total Tickets Raised
{{ $totalCount }}

All department records

Pending Review
{{ $pendingCount }}

Awaiting admin review

In Process
{{ $inProcessCount }}

Active field operations

Resolved
{{ $resolvedCount }}

Successfully completed

@if($tickets->isEmpty())

No Tickets Found

{{ !empty($search) || $statusFilter || $priorityFilter ? 'No tickets match your filters. Try resetting the search or filter.' : 'You have not raised any operational tickets yet. Click "Raise New Ticket" to report an issue.' }}

@else
@foreach($tickets as $t) @endforeach
Ticket Info Subject & Category Priority Status Remarks Last Activity Action
{{ $t->ticket_code }} {{ $t->created_at->format('d M Y, h:i A') }}
{{ $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($showRaiseModal)

Raise Operational Ticket

Report an issue or request action from Om Sai Operations Team.

@error('title') {{ $message }} @enderror
@error('category') {{ $message }} @enderror
@error('priority') {{ $message }} @enderror
@error('location') {{ $message }} @enderror
@error('description') {{ $message }} @enderror
Uploading preview...
@error('attachment') {{ $message }} @enderror
@endif @if($activeTicket)
{{ $activeTicket->ticket_code }} {{ $activeTicket->formatted_status }} Priority: {{ ucfirst($activeTicket->priority) }}

{{ $activeTicket->title }}

{{ $activeTicket->category }} • Raised on {{ $activeTicket->created_at->format('d M Y, h:i A') }}

@if($activeTicket->status === 'resolved')
This ticket has been marked as Resolved by Operations.
@if($activeTicket->resolution_notes)

Resolution Notes: {{ $activeTicket->resolution_notes }}

@endif
@endif
@foreach($activeTicket->messages as $msg) @if($msg->sender_type === 'department')
Department (You) {{ $msg->created_at->format('h:i A, d M') }}

{{ $msg->message }}

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

{{ $msg->message }}

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