@if ($filterType !== 'B2')
Download Survey Excel {{--
--}}
@endif
@foreach ($educationLevels as $edu) @endforeach @for ($i = 0; $i < 4; $i++) @endfor @foreach ($educationLevels as $edu) @endforeach {{-- Occupation Columns --}} @foreach ($structuredData as $index => $row) @foreach ($educationLevels as $edu) @endforeach @endforeach @foreach ($educationLevels as $edu) @endforeach
Sl. No. Age Group Sex Marital Status Education Status of Employment
Male Female Married Unmarried{{ $edu }}Employed Not Employed
N %N %N % N %
{{ $index + 1 }} {{ $row['age_group'] }} {{ $row['male_n'] }} {{ $row['male_percent'] }}% {{ $row['female_n'] }} {{ $row['female_percent'] }}% {{ $row['married_n'] }} {{ $row['married_percent'] }}% {{ $row['unmarried_n'] }} {{ $row['unmarried_percent'] }}%{{ $row['education'][$edu]['n'] ?? 0 }} {{ $row['education'][$edu]['percent'] ?? 0 }}%{{ $row['occupied_n'] ?? 0 }} {{ $row['occupied_percent'] ?? 0 }}% {{ $row['unoccupied_n'] ?? 0 }} {{ $row['unoccupied_percent'] ?? 0 }}%
Column Total {{ $totalCounts['male_n'] }} {{ $totalCounts['male_percent'] }}% {{ $totalCounts['female_n'] }} {{ $totalCounts['female_percent'] }}% {{ $totalCounts['married_n'] }} {{ $totalCounts['married_percent'] }}% {{ $totalCounts['unmarried_n'] }} {{ $totalCounts['unmarried_percent'] }}%{{ $totalCounts['education'][$edu]['n'] ?? 0 }} {{ $totalCounts['education'][$edu]['percent'] ?? 0 }}%{{ $totalCounts['occupied_n'] ?? 0 }} {{ $totalCounts['occupied_percent'] ?? 0 }}% {{ $totalCounts['unoccupied_n'] ?? 0 }} {{ $totalCounts['unoccupied_percent'] ?? 0 }}%
{{-- --}}