@extends('member-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
{{-- Flash Messages --}}
@if(session('tdx_config_error')) @endif @if(session('status')) @endif @if(session('error')) @endif
{{-- Stats Cards --}}
{{-- Tax Regime --}}

{{ $calculation ? strtoupper($calculation->regime) : 'N/A' }}

Tax Regime

{{-- Total Tax --}}

₹ {{ $calculation ? number_format($calculation->total_tax, 0) : '0' }}

Total Tax Liability

{{-- Monthly TDS --}}

₹ {{ $calculation ? number_format($calculation->monthly_tds, 0) : '0' }}

Monthly TDS

{{-- TDS Deducted --}}

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

TDS Deducted Till Date

{{-- Quick Actions --}}
{{-- Declaration Summary --}} @if($declaration)

Declaration Summary

Status @php $statusColors = ['draft' => 'secondary', 'calculated' => 'warning', 'active' => 'success', 'rejected' => 'danger']; @endphp {{ ucfirst($declaration->status) }}
Regime {{ strtoupper($declaration->regime ?? 'N/A') }}
Total Declared ₹ {{ number_format($declaration->total_declared_amount ?? 0, 0) }}
Total Approved ₹ {{ number_format($declaration->total_approved_amount ?? 0, 0) }}
Last Updated {{ $declaration->updated_at ? $declaration->updated_at->format('d M Y, h:i A') : '-' }}
{{-- Tax Calculation Summary --}} @if($calculation)

Tax Calculation Summary

Gross Income ₹ {{ number_format($calculation->gross_income, 0) }}
Standard Deduction - ₹ {{ number_format($calculation->standard_deduction, 0) }}
Total Deductions - ₹ {{ number_format($calculation->total_deductions, 0) }}
Taxable Income ₹ {{ number_format($calculation->taxable_income, 0) }}
Total Tax ₹ {{ number_format($calculation->total_tax, 0) }}
Monthly TDS ₹ {{ number_format($calculation->monthly_tds, 0) }}
@endif
@endif {{-- Recent Deductions --}} @if($recentTds->count() > 0)

Recent TDS Deductions

@foreach($recentTds as $tds) @endforeach
Month Gross Salary TDS Deducted Cumulative TDS Status
{{ $tds->month_name }} {{ $tds->year }} ₹ {{ number_format($tds->gross_salary, 0) }} ₹ {{ number_format($tds->tds_amount, 0) }} ₹ {{ number_format($tds->cumulative_tds, 0) }} @php $mColors = ['pending' => 'warning', 'deducted' => 'success', 'adjusted' => 'info']; @endphp {{ ucfirst($tds->status) }}
View Full History
@endif {{-- No Declaration Yet --}} @if(!$declaration)

No Declaration Submitted Yet

Submit your investment declaration for FY {{ $fy }} to get your tax calculated.

Submit Declaration Now
@endif
@endsection