@extends('layouts.main') @section('title', 'View Contribution') @section('breadcrumb')
| Name | Jan, {{ $contribution_year }} | Feb, {{ $contribution_year }} | Mar, {{ $contribution_year }} | Apr, {{ $contribution_year }} | May, {{ $contribution_year }} | Jun, {{ $contribution_year }} | Jul, {{ $contribution_year }} | Aug, {{ $contribution_year }} | Sep, {{ $contribution_year }} | Oct, {{ $contribution_year }} | Nov, {{ $contribution_year }} | Dec, {{ $contribution_year }} | Total | {{ $contributionAmountPerMonth[$index]['name'] }} | @php $total_amount = 0; @endphp @php $monthCount = 0; @endphp @foreach($months as $month) @php $total_amount += $month ; @endphp
{{ $month }} @if($attendanceMonths[$monthCount]>0) @else @endif |
@php
if(!isset($contributed_amount[$monthCount])) $contributed_amount[$monthCount] = 0;
$contributed_amount[$monthCount] += $month;
$monthCount++;
@endphp
@endforeach
{{ $total_amount }} | @endforTotal | @foreach($contributed_amount as $collection){{ $collection }} | @endforeach{{ array_sum($contributed_amount) }} |
|---|