@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
@if(session('error')) @endif
@csrf {{-- Step 1: Employee & Income Details --}}

Step 1: Employee & Income Details

{{-- Employee Selection --}}
@if(isset($declaration) && $declaration->id) @endif {!! $errors->first('employee_id', '') !!}
{{-- Regime Selection --}}
regime ?? 'old') === 'old' ? 'checked' : '' }}>
regime ?? '') === 'new' ? 'checked' : '' }}>
{!! $errors->first('regime', '') !!}
{{-- Declaration Type --}}
declaration_type ?? 'provisional') === 'provisional' ? 'checked' : '' }}>
declaration_type ?? '') === 'final' ? 'checked' : '' }}>

{{-- CTC Components (Auto-fetched from CTC Master) --}}
Salary Components (from CTC Master)
Loading...
{{-- Hidden fields for backward compatibility --}}
{{-- Rent Paid --}}
{{-- Rent Proof Upload --}}
@if(!empty($profile->rent_proof_file))
View Proof @if(($profile->rent_proof_status ?? '') === 'verified') Verified @elseif(($profile->rent_proof_status ?? '') === 'rejected') Rejected @endif
@endif PDF, JPG, PNG (max 5MB)
{{-- Metro City --}}
{{-- Step 2: Section-wise Declarations (Old Regime Only) --}}

Step 2: Investment Declarations (Section-wise)

@php $existingDetails = []; if (isset($declaration) && $declaration->id && $declaration->details) { foreach ($declaration->details as $detail) { if ($detail->tax_section_head_id) { $existingDetails[$detail->tax_section_id]['heads'][$detail->tax_section_head_id] = $detail; } else { $existingDetails[$detail->tax_section_id] = $detail; } } } @endphp
@foreach($taxSections as $index => $section)

@if($section->activeHeads->count() > 0) {{-- Section has heads — show head-level inputs --}}
@foreach($section->activeHeads as $hIdx => $head) @php $existingHead = $existingDetails[$section->id]['heads'][$head->id] ?? null; @endphp @endforeach
Head Name Declared (₹) Approved (₹) Description Proof
{{ $head->name }} @if($head->code) ({{ $head->code }}) @endif @if($head->max_limit > 0)
Max: ₹{{ number_format($head->max_limit, 0) }} @endif
max_limit > 0) max="{{ $head->max_limit }}" @endif data-section-index="{{ $index }}"> @if($existingHead && $existingHead->proof_file) View @if(($existingHead->proof_status ?? '') === 'verified') Verified @elseif(($existingHead->proof_status ?? '') === 'rejected') Rejected @endif @endif
Total: ₹ 0 @if($section->max_limit > 0) / ₹{{ number_format($section->max_limit, 0) }} @endif
@else {{-- Section without heads — single amount field --}} @php $existingSection = isset($existingDetails[$section->id]) && !isset($existingDetails[$section->id]['heads']) ? $existingDetails[$section->id] : null; @endphp
@if($existingSection && $existingSection->proof_file) View Proof @if(($existingSection->proof_status ?? '') === 'verified') Verified @elseif(($existingSection->proof_status ?? '') === 'rejected') Rejected @endif @endif PDF, JPG, PNG (max 5MB)
@endif
@endforeach
@if($taxSections->isEmpty())
No tax sections configured. Please contact administrator to set up tax sections.
@endif
{{-- TDS Calculation Sheet --}}

TDS Calculation Sheet (This is an estimated computation only)

{{-- Income --}} {{-- Deductions --}} {{-- Tax --}}
Description Projected Old Regime New Regime
Actual Salary (past months from payslips) 0
Projected Salary (current & future months from CTC) 0
Projected Gross Salary (Total) 0 0 0
Less: Standard Deduction u/s 16 0 0
Gross Total Income 0 0
Less: HRA Exemption 0 —
Less: Deductions under Chapter VI-A 0 —
Total Taxable Income 0 0
Tax on Total Income 0 0
Add: Surcharge 0 0
Less: Rebate u/s 87A 0 0
Add: Health & Education Cess (4%) 0 0
Total Tax Liability 0 0
Less: Tax Deducted Till Date 0 0
Tax to be Deducted (Balance) 0 0
Remaining Months in FY
Monthly TDS (estimated) 0 0
{{-- Submit --}}
@if(isset($declaration) && $declaration->id) Preview @endif Cancel
@endsection @push('footer-script') @endpush