@extends('layouts.app') @section('title', __('Selection & Grading')) @section('content') {{-- ✅ Header Section --}}

{{ __('Selection & Grading') }}

View selection details, record decisions, and manage grading status.

@can('selection.edit') {{ __('Edit') }} @endcan {{ __('Back to List') }} {{-- ✅ Cancel Record বাটন (মডাল ওপেন করার জন্য) --}} {{ __('Cancel Record') }}
@if (session('success')) @endif {{-- ✅ Details Card --}}
{{-- Status --}}
{{ __('Status') }}
{{-- Recruitment --}}
Recruitment
{{ $record->recruitment?->tracking_number ?? '—' }} — {{ $record->recruitment?->passportHolder?->full_name ?? '' }}
{{-- Grade --}}
Grade
{{ $record->grade ?? '—' }}
{{-- Decided At --}}
Decided At
{{ $record->decided_at ? \Carbon\Carbon::parse($record->decided_at)->format('d M, Y h:i A') : '—' }}
{{-- Remarks --}}
Remarks
{{ $record->remarks ?? __('No remarks provided.') }}
{{-- ✅ Financial Responsibility Section --}} @if ($recruitment)
{{ __('Financial Responsibility') }}
{{ __('Responsible Party') }}
{{ ucwords(str_replace('_', ' ', $recruitment->financial_responsible_type ?? __('Undecided'))) }} ({{ $recruitment->financial_responsible_id ?? '—' }})
{{ __('Total Cost') }}
{{ number_format((float) ($recruitment->total_cost ?? 0), 2) }}
{{ __('Advance') }}
{{ number_format((float) ($recruitment->advance_amount ?? 0), 2) }}
{{ __('Remaining Due') }}
{{ number_format((float) ($recruitment->remaining_due ?? 0), 2) }}
@endif {{-- ✅ Record Selection Decision Form Card --}}
{{ __('Record Selection Decision') }}
{{ __('Manage grading criteria') }}
@csrf
{{ __('Save Decision') }}
{{-- ✅ Workflow History --}} @if ($recruitment)
{{ __('Workflow History') }}
@endif {{-- ✅ Change Status Form Card --}}
{{ __('Change Status (Quick Update)') }}
@csrf
{{ __('Update Status') }}
{{-- ✅ Cancel Modal --}}
Are you sure?

{{ __('This cancels (archives) the record. It is not permanently deleted.') }}

@csrf @method('DELETE') {{ __('Confirm Cancel') }}
@endsection