View Application Details

{{ $application->application_number ?? '-' }}
{{ $application->created_at?->format('d-M-Y') ?? '-' }}
{{ $assignment?->toOffice?->name ?? '-' }}
Applicant Name {{ $application->applicant_name ?? 'N/A' }}
Mobile No. {{ $application->mobile_number ?? '-' }}
Alternate Mobile No. {{ $application->alternate_phone_number ?? '-' }}
Email {{ $application->email ?? '-' }}
Is BPL Applicant {{ $application->is_bpl_applicant ? 'Yes' : 'No' }}
Gender {{ $application->gender ?? 'N/A' }}
Street {{ $application->addressbook->street ?? 'N/A' }}
City {{ $application->addressbook->city ?? 'N/A' }}
Pincode {{ $application->addressbook->pincode ?? 'N/A' }}
District {{ $application->addressbook?->district?->name_eng ?? 'N/A' }}
State {{ $application->addressbook?->state?->name_eng ?? 'N/A' }}
Country {{ $application->addressbook?->country?->name_eng ?? 'N/A' }}
Citizenship {{ $application->nationality ? 'Indian' : 'Other' }}
Preffered Reply Mode {{ $application->is_postal_reply_needed ? 'Physical Copy' : 'Download From Portal' }}
Status {{ $application->status->name ?? 'N/A' }}
Application Age @if ($application->submitted_at) @php $age = $application->submitted_at ->startOfDay() ->diffInDays(now()->startOfDay()); @endphp {{ $age }} {{ $age == 1 ? 'Day' : 'Days' }} @else - @endif
Life and Liberty
life_and_liberty ? 'checked' : '' }}>
Subject
{{ $application->subject ?? '-' }}
Application Content
{!! $application->application_content ?? '-' !!}
@if ($alreadyForwarded && !$finalReplySent)
Send to Officer
Current Status: {{ $application->status->name ?? 'N/A' }}

@csrf
* @if ($forwardSeats && $forwardSeats->count() > 0) @else No other active seat is available in this office. @endif
Back
@endif
First Appeals
{{ $appeals->count() }} Appeals
@if ($appeals->count() > 0)
@foreach ($appeals as $index => $appeal) @endforeach
# Appeal Number Reply Reference No Appeal Date Submitted Office Status Action
{{ $index + 1 }} {{ $appeal->appeal_number ?? '-' }} @if ($appeal->reply) {{ $appeal->reply->reference_number }} @else - @endif {{ $appeal->appeal_date ? \Carbon\Carbon::parse($appeal->appeal_date)->format('d/m/Y') : '-' }} {{ $appeal->appealAssignment->toOffice->name ?? '-' }} @if ($appeal->appealStatus?->name) {{ $appeal->appealStatus->name }} @else - @endif @can('View Appeal Details') @if ($appeal->appealAssignment) @endif @endcan
@else
No appeals found

No first appeals have been submitted against this application.

@endif
{{-- APPLICATION FEE --}} @includeWhen(false, '') @php $applicationPayment = $applicationFeePayments->first(); $paymentStatusId = $applicationPayment?->payment_status_id; $badgeClass = match ($paymentStatusId) { 1 => 'bg-warning', 2 => 'bg-success', 3 => 'bg-danger', default => 'bg-secondary', }; @endphp
Application Fee
@if ($applicationPayment)
Payment Status {{ $applicationPayment->paymentStatus?->name ?? '-' }}
Payment Mode Online
Transaction ID {{ $applicationPayment->payment_reference_number ?? '-' }}
Amount ₹ {{ number_format($applicationPayment->amount ?? 0, 2) }}
Payment Type Application Fee
Payment Date {{ $applicationPayment->paid_at?->format('d-M-Y h:i A') ?? '-' }}
Gateway {{ $applicationPayment?->recentPaymentLog?->paymentGateway?->name ?? '-' }}
Receipt No. {{ $applicationPayment->receipt ?? '-' }}
@else
No application fee payment details available.
@endif
{{-- ============================================================ ADDITIONAL FEES ============================================================ --}}
Additional Fees
@forelse ($additionalFeeDemands as $demand) @php $additionalPayment = $demand->additionalFeePayment; $additionalPaymentStatusId = $additionalPayment?->payment_status_id; $additionalBadgeClass = match ($additionalPaymentStatusId) { 1 => 'bg-warning', 2 => 'bg-success', 3 => 'bg-danger', default => 'bg-secondary', }; @endphp
Payment Status {{ $additionalPayment?->paymentStatus?->name ?? '-' }}
Payment Mode Online
Transaction ID {{ $additionalPayment?->payment_reference_number ?? '-' }}
Amount ₹ {{ number_format($demand->amount ?? 0, 2) }}
Payment Type Additional Fee
Payment Date {{ $additionalPayment?->paid_at?->format('d-M-Y h:i A') ?? '-' }}
Gateway Paytm
Receipt No. {{ $additionalPayment?->receipt ?? '-' }}
@empty
No additional fee payment details available.
@endforelse
RTI Replies
{{ $replies->count() }} Replies
@if ($replies->count() > 0)
@foreach ($replies as $index => $reply) @endforeach
# Subject Sent Office Prepared By Sent By Replied On Reply Type 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') : '-' }} {{ $reply->replyType?->name ?? '-' }}
{{-- 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
Clarification Details
Clarification Asked Yes
Asked By Clerk
Clarification Date 23-Jul-2026
Response Received Yes
Response Date 24-Jul-2026
Status Completed
Attachments
{{-- BPL Certificate --}} @if (!empty($application->bpl_certificate)) @php $bplFileName = basename($application->bpl_certificate); $bplExtension = strtolower(pathinfo($bplFileName, PATHINFO_EXTENSION)); $bplIcon = match ($bplExtension) { 'pdf' => 'fa-file-pdf text-danger', 'doc', 'docx' => 'fa-file-word text-primary', 'xls', 'xlsx' => 'fa-file-excel text-success', 'jpg', 'jpeg', 'png' => 'fa-file-image text-info', default => 'fa-file text-secondary', }; @endphp @endif {{-- Existing Attachments --}} @forelse($attachments as $attachment) @php $extension = strtolower( pathinfo($attachment['file_name'], PATHINFO_EXTENSION), ); $icon = match ($extension) { 'pdf' => 'fa-file-pdf text-danger', 'doc', 'docx' => 'fa-file-word text-primary', 'xls', 'xlsx' => 'fa-file-excel text-success', 'jpg', 'jpeg', 'png' => 'fa-file-image text-info', default => 'fa-file text-secondary', }; @endphp @empty {{-- Only show this if there is also no BPL certificate --}} @if (empty($application->bpl_certificate)) @endif @endforelse
File Name Uploaded By Date Action
{{ $bplFileName }} BPL Certificate Applicant {{ $application->created_at ? \Carbon\Carbon::parse($application->created_at)->format('d-M-Y') : 'N/A' }} Download
{{ $attachment['file_name'] }} {{ $attachment['uploaded_by'] }} {{ $attachment['created_at'] ? \Carbon\Carbon::parse($attachment['created_at'])->format('d-M-Y') : 'N/A' }} Download
No attachments available.
{{-- ============================================================ APPLICATION SUMMARY ============================================================= --}}
{{ $application->application_number ?? '-' }}
{{ $application->subject ?? '-' }}
@if ($application->clock_start_date) @php $age = \Carbon\Carbon::parse($application->clock_start_date) ->startOfDay() ->diffInDays(now()->startOfDay()); @endphp {{ $age }}d @else - @endif AGE
{{--
APPLICATION AGE
@if ($assignment->clock_started_at) {{ $age }} {{ $age == 1 ? 'Day' : 'Days' }} @else - @endif
--}} {{--
Clock Start Date: {{ $assignment->clock_started_at ? \Carbon\Carbon::parse($assignment->clock_started_at)->format('d-M-Y') : '-' }}
--}}
APPLICANT
{{ $application->applicant_name ?? 'N/A' }} ◉
ID:{{ $application->application_number ?? '-' }}
FILING DATE & TIME
{{ $application->created_at?->format('d-M-Y') ?? '-' }}
via KSRTC RTI Portal
ORIGIN DESK (RECEIVING OFFICE)
{{ $assignment?->toOffice?->name ?? '-' }}
{{-- ============================================================ TITLE ============================================================= --}}
Chronological Movement & Track Log
Verifiable procedural history · {{ $activities->count() }} Recorded Official Events
{{-- LEFT: TIMELINE --}}
{{-- ============================================================ ACTIVITY TIMELINE ============================================================= --}} @if ($activities->count())
@foreach ($activities as $activity) @php /* |-------------------------------------------------------------------------- | Activity Name / Title |-------------------------------------------------------------------------- */ $activityName = strtolower( trim($activity->activityType->name ?? ($activity->title ?? '')), ); $activityTitle = $activity->activityType->name ?? ($activity->title ?? 'Activity'); /* |-------------------------------------------------------------------------- | File Flow |-------------------------------------------------------------------------- */ $fileFlow = $activity->fileFlow ?? null; /* |-------------------------------------------------------------------------- | FileFlow 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 |-------------------------------------------------------------------------- | | Adjust relationship name here if your FileFlow model | uses a different relationship. | */ $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, 'application submitted') ) { $icon = 'fa-file-text-o'; $dotClass = ''; $eventClass = ''; $tagClass = ''; $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'; } /* |-------------------------------------------------------------------------- | APPLICATION ACTIVITY DESCRIPTION |-------------------------------------------------------------------------- | | IMPORTANT: | Always use the Application Activity description here. | FileFlow comment must NOT replace it. | */ $activityEventNote = $activity->description ?? null; /* |-------------------------------------------------------------------------- | FILE FLOW COMMENT |-------------------------------------------------------------------------- | | This is intentionally kept separate from the | Application Activity description. | */ $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 {{-- ================================================= SUBMITTED WITHOUT FILE FLOW ================================================== --}} @elseif(str_contains($activityName, 'submitted')) Public Portal → {{ optional($application->targetOffice)->name ?? (optional($application->office)->name ?? 'Receiving Office') }} {{-- ================================================= NORMAL ACTIVITY WITHOUT FILE FLOW ================================================== --}} @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
{{-- ================================================= APPLICATION ACTIVITY DESCRIPTION ================================================== --}} {{-- ALWAYS show the activity description here. This must NOT be replaced by FileFlow comment. --}} @if (!empty($activityEventNote))
"{{ $activityEventNote }}"
@endif {{-- ================================================= FILE FLOW COMMENT ================================================== --}} {{-- Separate event-note structure. Only shown when FileFlow has a 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 application.

@endif

Work Items

{{ $assignments->count() }} Items
@foreach ($assignments as $index => $assignmentItem)
{{ $assignmentItem->status?->name ?? 'N/A' }}
{{ $assignmentItem->assignment_number }}
User: {{ $assignmentItem->toUser?->name ?? 'Unassigned' }}
Seat: {{ $assignmentItem->assignedSeat?->name ?? 'N/A' }}
Office: {{ $assignmentItem->toOffice?->name ?? 'N/A' }}
@endforeach