@extends('layouts.admin') @section('title', 'Application #' . $application->id) @section('page-title', 'Application Details') @section('breadcrumb', 'Application #' . $application->id) @section('content')
{{ $application->my_name }}

ජා.හැ. අංකය / NIC: {{ $application->my_nic }} · Submitted {{ $application->created_at->format('Y-m-d H:i') }}

@include('admin.partials.status-badge', ['status' => $application->status]) @php $from = request('from'); $canReview = auth()->user()->hasFeature(\App\Support\DashboardFeatures::APPLICATIONS) && $from !== 'recent'; $backRoute = $from === 'recent' && auth()->user()->hasFeature(\App\Support\DashboardFeatures::APPLICATIONS_RECENT) ? route('admin.applications.recent') : (auth()->user()->hasFeature(\App\Support\DashboardFeatures::APPLICATIONS) ? route('admin.applications.index') : (auth()->user()->hasFeature(\App\Support\DashboardFeatures::APPLICATIONS_RECENT) ? route('admin.applications.recent') : route('admin.activity-log.index'))); @endphp @if ($canReview) @if ($application->status !== 'approved')
@csrf
@endif @if ($application->status !== 'rejected') @endif @endif ← Back
@if ($application->reviewed_at) @endif
@if ($canReview) @if ($errors->has('rejection_reason')) @push('scripts') @endpush @endif @endif @if ($application->rejection_reason)
Rejection reason: {{ $application->rejection_reason }}
@endif
@foreach ([ [ 'title' => 'මවගේ විස්තර — Applicant', 'header' => 'bg-primary-50', 'accent' => 'border-primary-200', 'fields' => [ 'නම — Name' => $application->my_name, 'ජා.හැ. අංකය — NIC' => $application->my_nic, 'රැකියාව — Job' => $application->my_job, 'දූරකථන අංකය — Phone' => $application->my_phone, 'මාසික ආදායම — Income' => $application->my_income, ], ], [ 'title' => 'පියාගේ විස්තර — Father', 'header' => 'bg-success-50', 'accent' => 'border-success-200', 'fields' => [ 'නම — Name' => $application->spouse_name, 'ජා.හැ. අංකය — NIC' => $application->spouse_nic, 'රැකියාව — Job' => $application->spouse_job, 'දූරකථන අංකය — Phone' => $application->spouse_phone, 'මාසික ආදායම — Income' => $application->spouse_income, ], ], [ 'title' => 'භාරකරුගේ විස්තර — Guardian', 'header' => 'bg-warning-50', 'accent' => 'border-warning-200', 'fields' => [ 'නම — Name' => $application->guardian_name, 'ජා.හැ. අංකය — NIC' => $application->guardian_nic, 'රැකියාව — Job' => $application->guardian_job, 'දූරකථන අංකය — Phone' => $application->guardian_phone, 'මාසික ආදායම — Income' => $application->guardian_income, ], ], [ 'title' => 'ලිපිනය — Address', 'header' => 'bg-info-50', 'accent' => 'border-info-200', 'fields' => [ 'අංකය — Number' => $application->addr_number, 'වීදිය — Street' => $application->addr_street, 'නගරය — City' => $application->addr_city, 'කොට්ඨාසය — Division' => $application->addr_colombo, 'පදිංචි කාල සීමාව — Residence' => ucfirst($application->residence_type), ], ], [ 'title' => 'සම්බන්ධතා — Contact', 'header' => 'bg-info-50', 'accent' => 'border-info-200', 'fields' => [ 'දූරකථන අංකය — Phone' => $application->phone, 'WhatsApp' => $application->whatsapp, 'විද්‍යුත් ලිපිනය — Email' => $application->email, ], ], ] as $section)
{{ $section['title'] }}
    @foreach ($section['fields'] as $label => $value)
  • {{ $label }} {{ $value ?: '—' }}
  • @endforeach
@endforeach
පාසල් යන දරුවන් — School Children
@foreach ($application->children as $child) @endforeach
# උප්පැන්න සහතික අංකය — Birth cert. no. ශිෂ්‍ය / ශිෂ්‍යාවගේ නම — Student name පාසලේ නම — School කොළඹ — Colombo ශ්‍රේණිය — Grade පෙර වර්ෂ — Previous Years
{{ $loop->iteration }} {{ $child->birth_cert_no }} {{ $child->student_name ?? '—' }} {{ $child->school }} {{ $child->colombo ?? '—' }} {{ $child->grade ?? '—' }} @forelse ($child->amounts as $amount) {{ $amount->loanYear->year }}: {{ $amount->amount ?? '—' }} @empty — @endforelse
දැනට ලභාගන්නා සහනාධාර — Aid Requested
@forelse ($application->aids as $aid)
{{ $aid->aidType?->label ?? ucfirst($aid->code) }}
@empty

No aid types selected.

@endforelse @if ($application->aid_estimate)

වෙනත් — Other: {{ $application->aid_estimate }}

@endif
වෘත්තීය පුහුණු අවශ්‍යතා — Trade Training
    @foreach ([ 'නම — Name' => $application->trade_name, 'වයස — Age' => $application->trade_age, 'අවශ්‍ය පුහුණුව — Training need' => $application->trade_need, 'අධ්‍යාපන සුදුසුකම් — Qualifications' => $application->trade_ref, ] as $label => $value)
  • {{ $label }} {{ $value ?: '—' }}
  • @endforeach
ප්‍රකාශනය — Declaration
අත්සන් — Signatures
@foreach ([ 'මව/පිය/භාරකරු අත්සන — Parent/Guardian' => $application->parent_signature, 'සාක්ෂිකරු අත්සන — Witness' => $application->witness_signature, 'නිල මුද්‍රාව — Official Seal' => $application->official_seal, ] as $label => $src)

{{ $label }}

@if ($src)
{{ $label }}
@else

—

@endif
@endforeach
@if ($application->description)

ඉල්ලුම්කරු විස්තර — Applicant description

{{ $application->description }}

@endif @if ($application->recommend)

සහන නිලධාරී නිර්දේශ — Officer recommendation

{{ $application->recommendLabel() }}

@endif
@if (auth()->user()->hasFeature(\App\Support\DashboardFeatures::APPLICATIONS))
කාර්යාල භාවිතය — Office Use
@csrf @method('PATCH')
@endif
Activity Log
@if (auth()->user()->hasFeature(\App\Support\DashboardFeatures::ACTIVITY_LOG)) Full log → @endif
@endsection