@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
{{-- Flash Messages --}}
@if(session('status')) @endif @if(session('status_error')) @endif
{{-- Financial Year Header --}}

Financial Year: {{ $fy }}

@if($configComplete) New Declaration Recalculate All @else @endif
{{-- Redirect error from middleware --}} @if(session('tdx_config_error'))
@endif {{-- Configuration Status Alert --}} @if(!$configComplete)
@endif {{-- Stats Cards --}}

{{ $totalProfiles }}

Tax Profiles

{{ $pendingDeclarations }}

Pending Approvals

{{ $provisionalActive }}

Provisional Active

{{ $finalActive }}

Final Active

₹ {{ number_format($totalTaxLiability, 0) }}

Total Tax Liability

{{-- Regime Distribution & TDS Deducted --}}

Regime Distribution

Old Regime {{ $regimeStats['old'] ?? 0 }} employees
New Regime {{ $regimeStats['new'] ?? 0 }} employees
@php $total = ($regimeStats['old'] ?? 0) + ($regimeStats['new'] ?? 0); $oldPct = $total > 0 ? round((($regimeStats['old'] ?? 0) / $total) * 100) : 0; $newPct = $total > 0 ? 100 - $oldPct : 0; @endphp
Old: {{ $oldPct }}% New: {{ $newPct }}%

TDS Collection Summary

Total Tax Liability

₹ {{ number_format($totalTaxLiability, 2) }}

TDS Already Deducted

₹ {{ number_format($totalTdsDeducted, 2) }}

@php $remaining = max(0, $totalTaxLiability - $totalTdsDeducted); $pct = $totalTaxLiability > 0 ? round(($totalTdsDeducted / $totalTaxLiability) * 100) : 0; @endphp
{{ $pct }}%
Remaining: ₹ {{ number_format($remaining, 2) }}
{{-- Quick Links --}}

Quick Actions

{{-- Org Settings (visible to all admins) --}}
Organization Settings
{{-- Operations --}}
Operations
@if($configComplete) Declarations @else @endif
@if($configComplete) New Declaration @else @endif
@if($configComplete) Approvals @else @endif
@if($configComplete) Tax Calculations @else @endif
{{-- Recent Declarations --}}

Recent Declarations

@forelse($recentDeclarations as $index => $declaration) @empty @endforelse
# Employee Regime Declared Amount Approved Amount Status Updated
{{ $index + 1 }} {{ $declaration->employee->name ?? 'N/A' }} {{ ucfirst($declaration->regime) }} Regime ₹ {{ number_format($declaration->total_declared_amount, 2) }} ₹ {{ number_format($declaration->total_approved_amount, 2) }} @php $statusColors = [ 'draft' => 'secondary', 'submitted' => 'info', 'under_review' => 'warning', 'approved' => 'success', 'active' => 'success', 'rejected' => 'danger', ]; $color = $statusColors[$declaration->status] ?? 'secondary'; @endphp {{ ucwords(str_replace('_', ' ', $declaration->status)) }} {{ $declaration->updated_at->format('d M Y') }}
No declarations found for this financial year.
@endsection @push('footer-script') @endpush