@extends('admin.layouts.app') @section('title', get_setting('site_name').' | '.__('Employee TDS Summary')) @section('content')
{{ \App\Services\PayrollIncomeTaxService::label() }} — {{ __('Employee yearly summary') }}
{{ __('TDS Settings') }}
@if($selectedStaff)
{{ $selectedStaff->user->name ?? '-' }} @if($salarySetup?->tin_number) | {{ __('TIN') }}: {{ $salarySetup->tin_number }} @endif @if($salarySetup?->tax_exempt) {{ __('Tax exempt') }} @endif {{ __('Download Form 16 (PDF)') }}
@forelse($summary as $row) @empty @endforelse @if($summary->isNotEmpty()) @endif
{{ __('Month') }} {{ __('Gross') }} {{ __('Taxable') }} {{ __('TDS') }} {{ __('Net') }}
{{ \Carbon\Carbon::create(null, $row->salary_month, 1)->format('F Y') }} {{ number_format($row->gross_salary, 2) }} {{ number_format($row->taxable_income ?? 0, 2) }} {{ number_format($row->income_tax, 2) }} {{ number_format($row->net_salary, 2) }}
{{ __('No payroll records in this fiscal year.') }}
{{ __('Total') }} {{ number_format($summaryTotals['gross'] ?? 0, 2) }} {{ number_format($summaryTotals['taxable'] ?? 0, 2) }} {{ number_format($summaryTotals['tds'] ?? 0, 2) }} {{ number_format($summaryTotals['net'] ?? 0, 2) }}
@endif
@endsection