View Appeal Details

{{--
--}}
Appeal Information
Appeal Number {{ $appeal->appeal_number }}
Appeal Date {{ $appeal->created_at?->format('d-M-Y') ?? '-' }}
Appeal Type First Appeal
Filed By {{ $applicant_name }}
Mobile {{ $appeal->creator->mobile_number }}
Email {{ $appeal->creator->email }}
Department {{ $initialSeat->section->office->name}}
Officer {{ $initialSeat->activeUser?->user?->name }}-{{ $initialSeat->name}}
Reply Ref No : @if ($originalReply?->reference_number) {{ $originalReply->reference_number }} @else - @endif
Original RTI Application
RTI No. {{ $application->application_number ?? '-' }}
Application Date {{ $application->created_at?->format('d-M-Y') ?? '-' }}
Department {{ $assignment?->application?->targetOffice?->name ?? '-' }}
Officer {{ $pioSeat->activeUser?->user?->name }}-{{ $pioSeat->name}}
Reply Date {{ $appeal->reply?->replied_at ? \Carbon\Carbon::parse($appeal->reply->replied_at)->format('d-M-Y') : '-' }}
Subject {{ $application->subject ?? '-' }}
RTI Application @if ($assignment?->id) @can('View Application Details') View @else - @endcan @else - @endif
Appeal Grounds
{!! $appeal->appeal_grounds ?? 'N/A' !!}
Appeal Details
{!! $appeal->appeal_details ?? 'N/A' !!}
Status {{ $appeal->status?->name ?? '-' }}
{{--
Remarks Pending with First Appellate Authority for hearing and decision.
--}}
Appeal Attachment
@if ($appeal->attachment) @php $attachmentPath = 'storage/uploads/first_appeal_attachments/' . $appeal->attachment; $attachmentUrl = asset($attachmentPath); $extension = strtolower(pathinfo($appeal->attachment, PATHINFO_EXTENSION)); $fileIcon = match ($extension) { 'pdf' => 'fa-file-pdf text-danger', 'doc', 'docx' => 'fa-file-word text-primary', 'jpg', 'jpeg', 'png' => 'fa-file-image text-success', default => 'fa-file text-secondary', }; @endphp
{{-- File Name --}} {{-- Uploaded By --}} {{-- Uploaded Date --}} {{-- Action --}}
File Name Uploaded By Date Action
{{ $appeal->attachment }} {{ $appeal->creator?->name ?? 'Applicant' }} {{ $appeal->updated_at ? $appeal->updated_at->format('d-M-Y') : '-' }} Download
@else
No attachment has been uploaded with this appeal.
@endif
Send to Officer
Current Status: {{ $appeal->status->name }}

@csrf
*
Back
@endif -->
{{--
Case Summary
Current Status
Under Hearing

Priority
Normal
Officer
A. Kumar
First Appellate Authority
Office
Trivandrum
Linked RTI No.
Pending Since
5 Days
Due Date
30-Jul-2026
Hearing Date
30-Jul-2026
--}}
Online Transactions
@forelse ($additionalFeeDemands as $demand)
Payment Details
{{-- --}}
Payment Status @php $paymentStatusId = $demand->additionalFeePayment?->payment_status_id; $badgeClass = match ($paymentStatusId) { 1 => 'bg-warning', // Pending 2 => 'bg-success', // Success 3 => 'bg-danger', // Failed default => 'bg-secondary', }; @endphp {{ $demand->additionalFeePayment?->paymentStatus?->name ?? '-' }}
Payment Mode Online
Transaction ID {{ $demand->additionalFeePayment?->receipt ?? '-' }}
Amount ₹ {{ $demand->amount }}
{{-- --}}
Payment Date {{ $demand->additionalFeePayment?->created_at?->format('d-M-Y h:i A') ?? '-' }}
Gateway {{ $demand->additionalFeePayment?->recentPaymentLog?->paymentGateway?->name ?? '-' }}
Receipt No. RCPT2026000123
{{-- --}}
@empty
No payment details available.
@endforelse
{{--
Attachments
File Name Uploaded By Date Action
Appeal.pdf Applicant 22-Jul-2026
Reply from PIO.pdf PIO 05-Jul-2026
Evidence.docx Applicant 22-Jul-2026
--}}
Attachments
@if ($appeal->attachment) @php $attachmentUrl = asset( 'storage/uploads/first_appeal_attachments/' . $appeal->attachment, ); $extension = strtolower(pathinfo($appeal->attachment, PATHINFO_EXTENSION)); $fileIcon = match ($extension) { 'pdf' => 'fa-file-pdf text-danger', 'doc', 'docx' => 'fa-file-word text-primary', 'jpg', 'jpeg', 'png' => 'fa-file-image text-success', default => 'fa-file text-secondary', }; @endphp
{{-- File Name --}} {{-- Uploaded By --}} {{-- Date --}} {{-- Action --}}
File Name Uploaded By Date Action
{{ $appeal->attachment }} {{ $appeal->creator?->name ?? 'Applicant' }} {{ $appeal->updated_at ? $appeal->updated_at->format('d-M-Y') : '-' }} {{-- View --}} View {{-- Download --}} Download
@else
No attachment has been uploaded with this appeal.
@endif
{{-- ============================================================ APPEAL SUMMARY ============================================================= --}}
{{-- LEFT --}}
{{ $appeal->appeal_number ?? '-' }}
{{ $application->subject ?? '-' }}
{{-- RIGHT --}}
@php $appealAge = null; if ($appeal->appeal_date) { $appealAge = \Carbon\Carbon::parse($appeal->appeal_date) ->diffInDays(now()); } @endphp @if (!is_null($appealAge)) {{ $appealAge }}d @else - @endif AGE
APPEAL AGE
@if (!is_null($appealAge)) {{ $appealAge }} {{ $appealAge == 1 ? 'Day' : 'Days' }} @else - @endif
Appeal Date: {{ $appeal->appeal_date ? \Carbon\Carbon::parse($appeal->appeal_date)->format('d-M-Y h:i:s a') : '-' }}
{{-- ==================================================== APPEAL META ===================================================== --}}
{{-- APPLICANT --}}
APPLICANT
{{ $appeal->creator?->name ?? ($application->applicant_name ?? 'N/A') }} ◉
Appeal No: {{ $appeal->appeal_number ?? '-' }}
{{-- APPEAL DATE --}}
APPEAL DATE & TIME
{{ $appeal->appeal_date ? \Carbon\Carbon::parse($appeal->appeal_date)->format('d-M-Y h:i:s a') : '-' }}
via KSRTC RTI Portal
{{-- ORIGIN DESK --}}
ORIGIN DESK (RECEIVING OFFICE)
{{ $assignment?->toOffice?->name ?? '-' }}
{{-- ============================================================ CHRONOLOGICAL MOVEMENT ============================================================= --}}
Chronological Movement & Track Log
Verifiable procedural history · {{ $activities->count() }} Recorded Official Events
{{-- ==================================================== LEFT : TIMELINE ===================================================== --}}
@if ($activities->count())
@foreach ($activities as $activity) @php /* |-------------------------------------------------------------------------- | ACTIVITY NAME |-------------------------------------------------------------------------- */ $activityName = strtolower( trim($activity->activityType->name ?? ($activity->title ?? '')), ); $activityTitle = $activity->activityType->name ?? ($activity->title ?? 'Activity'); /* |-------------------------------------------------------------------------- | FILE FLOW |-------------------------------------------------------------------------- */ $fileFlow = $activity->fileFlow ?? null; /* |-------------------------------------------------------------------------- | FILE FLOW USERS / SEATS |-------------------------------------------------------------------------- */ $fromUser = null; $toUser = null; $fromSeat = null; $toSeat = null; if ($fileFlow) { $fromUser = optional($fileFlow->initiatorUser)->name; $toUser = optional($fileFlow->receiverUser)->name; $fromSeat = optional($fileFlow->initiatorSeat)->name; $toSeat = optional($fileFlow->receiverSeat)->name; } /* |-------------------------------------------------------------------------- | FILE FORWARD TYPE |-------------------------------------------------------------------------- */ $forwardType = null; if ($fileFlow) { $forwardType = optional($fileFlow->forwardType)->name ?? (optional($fileFlow->fileForwardType)->name ?? null); } /* |-------------------------------------------------------------------------- | DEFAULT STYLING |-------------------------------------------------------------------------- */ $icon = 'fa-info-circle'; $dotClass = ''; $eventClass = ''; $tagClass = ''; $routeIcon = 'fa-share'; /* |-------------------------------------------------------------------------- | SUBMITTED |-------------------------------------------------------------------------- */ if ( str_contains($activityName, 'submitted') || str_contains($activityName, 'appeal submitted') ) { $icon = 'fa-file-text-o'; $routeIcon = 'fa-arrow-right'; } /* |-------------------------------------------------------------------------- | FORWARDED |-------------------------------------------------------------------------- */ elseif ( str_contains($activityName, 'forward') || str_contains($activityName, 'transfer') ) { $icon = 'fa-share'; $routeIcon = 'fa-arrow-right'; } /* |-------------------------------------------------------------------------- | RETURNED |-------------------------------------------------------------------------- */ elseif ( str_contains($activityName, 'return') || str_contains($activityName, 'sent back') ) { $icon = 'fa-arrow-rotate-left'; $dotClass = 'red'; $eventClass = 'event-danger'; $tagClass = 'red'; $routeIcon = 'fa-arrow-left'; } /* |-------------------------------------------------------------------------- | ASSIGNED |-------------------------------------------------------------------------- */ elseif ( str_contains($activityName, 'assign') ) { $icon = 'fa-file'; $routeIcon = 'fa-arrow-right'; } /* |-------------------------------------------------------------------------- | APPROVED |-------------------------------------------------------------------------- */ elseif ( str_contains($activityName, 'approve') ) { $icon = 'fa-check-circle'; $dotClass = 'green'; $eventClass = 'event-success'; $tagClass = 'green'; $routeIcon = 'fa-check-circle'; } /* |-------------------------------------------------------------------------- | REPLY |-------------------------------------------------------------------------- */ elseif ( str_contains($activityName, 'reply') ) { $icon = 'fa-comment'; $routeIcon = 'fa-arrow-right'; } /* |-------------------------------------------------------------------------- | STATUS |-------------------------------------------------------------------------- */ elseif ( str_contains($activityName, 'status') ) { $icon = 'fa-exchange'; $routeIcon = 'fa-exchange'; } /* |-------------------------------------------------------------------------- | PAYMENT |-------------------------------------------------------------------------- */ elseif ( str_contains($activityName, 'payment') ) { $icon = 'fa-money'; $routeIcon = 'fa-money'; } /* |-------------------------------------------------------------------------- | CLARIFICATION |-------------------------------------------------------------------------- */ elseif ( str_contains($activityName, 'clarification') ) { $icon = 'fa-question-circle'; $routeIcon = 'fa-question-circle'; } /* |-------------------------------------------------------------------------- | ACTIVITY DESCRIPTION |-------------------------------------------------------------------------- */ $activityEventNote = $activity->description ?? null; /* |-------------------------------------------------------------------------- | FILE FLOW COMMENT |-------------------------------------------------------------------------- */ $fileFlowComment = null; if ($fileFlow && !empty($fileFlow->comment)) { $fileFlowComment = $fileFlow->comment; } @endphp {{-- ================================================= EVENT ================================================== --}}
{{-- TIMELINE DOT --}} {{-- ================================================= EVENT HEADER ================================================== --}}
{{ $activityTitle }}
{{ optional($activity->created_at)->format('d M Y · h:i A') }}
{{-- ================================================= ROUTING ================================================== --}}
Routing: {{-- ========================================== FILE FLOW ROUTING =========================================== --}} @if ($fileFlow) {{-- FROM USER --}} {{ $fromUser ?? 'Unknown User' }} {{-- FROM SEAT --}} @if ($fromSeat) ({{ $fromSeat }}) @endif → {{-- TO USER --}} {{ $toUser ?? 'Unknown User' }} {{-- TO SEAT --}} @if ($toSeat) ({{ $toSeat }}) @endif {{-- ========================================== APPEAL SUBMITTED =========================================== --}} @elseif(str_contains($activityName, 'submitted')) Public Portal → {{ optional($assignment?->assignedOffice)->name ?? 'Receiving Office' }} {{-- ========================================== NORMAL ACTIVITY =========================================== --}} @elseif($activity->user || $activity->seat) @if ($activity->user) {{ $activity->user->name }} @endif @if ($activity->seat) @if ($activity->user) ( {{ $activity->seat->name }} ) @else {{ $activity->seat->name }} @endif @endif {{-- ========================================== SYSTEM ACTIVITY =========================================== --}} @else System @endif
{{-- ================================================= ACTIVITY DESCRIPTION ================================================== --}} @if (!empty($activityEventNote))
"{{ $activityEventNote }}"
@endif {{-- ================================================= FILE FLOW COMMENT ================================================== --}} @if (!empty($fileFlowComment))
"{{ $fileFlowComment }}"
@endif {{-- ================================================= FILE FORWARD TYPE ================================================== --}} @if ($fileFlow && !empty($forwardType))
File Forward Type: {{ $forwardType }}
@endif {{-- ================================================= METADATA ================================================== --}}
@endforeach
@else

No activity found for this appeal.

@endif
{{-- ==================================================== RIGHT : WORK ITEMS ===================================================== --}}

Work Items

{{ $assignments->count() }} Items
@forelse($assignments as $index => $assignmentItem)
{{-- STATUS --}}
{{ $assignmentItem->status?->name ?? 'N/A' }}
{{-- ASSIGNMENT NUMBER --}}
{{ $assignmentItem->assignment_number ?? '-' }}
{{-- USER --}}
User: {{ $assignmentItem->toUser?->name ?? 'Unassigned' }}
{{-- SEAT --}}
Seat: {{ $assignmentItem->assignedSeat?->name ?? 'N/A' }}
{{-- OFFICE --}}
Office: {{ $assignmentItem->toOffice?->name ?? 'N/A' }}
{{-- ASSIGNED DATE --}}
@empty
No appeal work items found.
@endforelse
Appeal Orders {{ $appeal->appeal_number }}
{{ $replies->count() }} Orders
@if ($replies->count() > 0)
@foreach ($replies as $index => $reply) @endforeach
# Subject Office Prepared By Sent By Replied On Action
{{ $index + 1 }} {{ $reply->subject ?? '-' }} {{ $reply->office->name ?? '-' }} {{ $reply->preparedSeat?->name ?? '-' }} {{ $reply->sentSeat?->name ?? '-' }} {{ $reply->replied_at ? \Carbon\Carbon::parse($reply->replied_at)->format('d/m/Y h:i A') : '-' }}
{{-- View Reply Details --}} {{-- View PDF --}} @if (!empty($reply->reply_pdf)) {{-- Download PDF --}} @endif
@else
No replies found

No RTI replies have been prepared against this application.

@endif
Transfer History
@forelse($transferHistory as $assignment) {{-- Date --}} {{-- From --}} {{-- To --}} {{-- Remarks --}} {{-- Action --}} @empty @endforelse
Date From To Remarks Action
@if ($assignment->clock_started_at) {{ \Carbon\Carbon::parse($assignment->clock_started_at)->format('d-M-Y') }} @else - @endif {{ $seats[$assignment->assigned_seat] ?? '-' }} {{ $seats[$assignment->to_seat_id] ?? '-' }} {{ $assignment->transfer_note ?? '-' }}
No transfer history found.