@foreach ($data as $all) @php $total_trainer += $all->total_trainer; $total_bangla += $all->Bangla; $total_english += $all->English; $total_math += $all->Mathematics; $total_science += $all->Science; $total_history += $all->Historys; $total_digital += $all->Digital; $total_life += $all->Life; $total_wellbeing += $all->Wellbeing; $total_arts += $all->Arts; $total_islam += $all->Islam; $total_hindu += $all->Hindu; $total_cristian += $all->Christian; $total_buddha += $all->Buddha; $total_not_app += $all->not_app; @endphp @endforeach
# District Upazila Total
Trainer
Bangla English Mathematics Science Historys Digital Life Wellbeing Arts Islam Hindu Christian Buddha N/A
{{ $i++ }} {{ $all->district_name }} {{ $all->upazila_name }} @if($all->total_trainer == null) {{ 0 }} @else {{ $all->total_trainer }} @endif @if($all->Bangla == null) {{ 0 }} @else {{ $all->Bangla }} @endif @if($all->English == null) {{ 0 }} @else {{ $all->English }} @endif @if($all->Mathematics == null) {{ 0 }} @else {{ $all->Mathematics }} @endif @if($all->Science == null) {{ 0 }} @else {{ $all->Science }} @endif @if($all->Historys == null) {{ 0 }} @else {{ $all->Historys }} @endif @if($all->Digital == null) {{ 0 }} @else {{ $all->Digital }} @endif @if($all->Life == null) {{ 0 }} @else {{ $all->Life }} @endif @if($all->Wellbeing == null) {{ 0 }} @else {{ $all->Wellbeing }} @endif @if($all->Arts == null) {{ 0 }} @else {{ $all->Arts }} @endif @if($all->Islam == null) {{ 0 }} @else {{ $all->Islam }} @endif @if($all->Hindu == null) {{ 0 }} @else {{ $all->Hindu }} @endif @if($all->Christian == null) {{ 0 }} @else {{ $all->Christian }} @endif @if($all->Buddha == null) {{ 0 }} @else {{ $all->Buddha }} @endif @if($all->not_app == null) {{ 0 }} @else {{ $all->not_app }} @endif
Total {{ $total_trainer }} {{ $total_bangla }} {{ $total_english }} {{ $total_math }} {{ $total_science }} {{ $total_history }} {{ $total_digital }} {{ $total_life }} {{ $total_wellbeing }} {{ $total_arts }} {{ $total_islam }} {{ $total_hindu }} {{ $total_cristian }} {{ $total_buddha }} {{ $total_not_app }}