@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
{{-- Flash Messages --}}
@if(session('status')) @endif @if($errors->any()) @endif
{{-- Add New Setting --}}

Add / Update Declaration Window

@csrf
Deduction component where TDS is applied during payroll
{{-- Existing Settings --}}

Declaration Window Settings — {{ $organization->name }}

@forelse($settings as $index => $setting) @empty @endforelse
# Financial Year Status Start Date End Date TDS Component Window Actions
{{ $settings->firstItem() + $index }} {{ $setting->financialYear->label ?? 'N/A' }} @if($setting->declaration_status === 'open') Open @elseif($setting->declaration_status === 'closed') Closed @else Locked @endif {{ $setting->declaration_start_date ? $setting->declaration_start_date->format('d M Y') : '—' }} {{ $setting->declaration_end_date ? $setting->declaration_end_date->format('d M Y') : '—' }} @php $tdsComp = $setting->tds_component_type_id ? $deductionComponents->firstWhere('id', $setting->tds_component_type_id) : null; @endphp @if($tdsComp) {{ $tdsComp->name }} @else — @endif @if($setting->isDeclarationOpen()) Open Now @else Not Open @endif
@csrf @method('DELETE')
No settings configured yet.
@if($settings->hasPages()) @endif
{{-- Edit Modal --}} @endsection @push('footer-script') @endpush