Header Avatar

:: Target Review Report (D/L) ::

Date :- {{ $date }}
@php $previousMonth = null; $rowspanCount = 1; @endphp @foreach ($response['target_review_array'] as $key => $value) @php $hasStrongTag = strpos($value['month'], '') !== false || strpos($value['particulars'], '') !== false || strpos($value['unit'], '') !== false || strpos($value['current_year_target_set'], '') !== false || strpos($value['current_year_achieved'], '') !== false || strpos($value['current_year_difference'], '') !== false || strpos($value['reason'], '') !== false || strpos($value['previours_year_target_set'], '') !== false || strpos($value['previours_year_achieved'], '') !== false || strpos($value['previours_year_difference'], '') !== false || strpos($value['reason1'], '') !== false || strpos($value['next_previours_year_target_set'], '') !== false || strpos($value['next_previours_year_achieved'], '') !== false || strpos($value['next_previours_year_difference'], '') !== false || strpos($value['reason2'], '') !== false; @endphp @endforeach {{-- @php $monthCounts = []; foreach ($response['target_review_array'] as $value) { $month = strip_tags($value['month']); // Remove any HTML tags from the month if (!isset($monthCounts[$month])) { $monthCounts[$month] = 0; } $monthCounts[$month]++; } @endphp @php $previousMonth = null; @endphp @foreach ($response['target_review_array'] as $key => $value) @php $hasStrongTag = strpos($value['month'], '') !== false || strpos($value['particulars'], '') !== false || strpos($value['unit'], '') !== false || strpos($value['current_year_target_set'], '') !== false || strpos($value['current_year_achieved'], '') !== false || strpos($value['current_year_difference'], '') !== false || strpos($value['reason'], '') !== false || strpos($value['previours_year_target_set'], '') !== false || strpos($value['previours_year_achieved'], '') !== false || strpos($value['previours_year_difference'], '') !== false || strpos($value['reason1'], '') !== false || strpos($value['next_previours_year_target_set'], '') !== false || strpos($value['next_previours_year_achieved'], '') !== false || strpos($value['next_previours_year_difference'], '') !== false || strpos($value['reason2'], '') !== false; $currentMonth = strip_tags($value['month']); $isFirstRowForMonth = $previousMonth !== $currentMonth; $rowspanCount = $isFirstRowForMonth ? $monthCounts[$currentMonth] : 0; @endphp @if ($isFirstRowForMonth) @endif @php $previousMonth = $currentMonth; @endphp @endforeach --}}
Month Particulars Unit Current Year ({{$response['current_year']}}) Next Year ({{$response['next_year']}}) Next To Next Year ({{$response['next_to_next_year']}})
Target Achieved Difference Reason Target Achieved Difference Reason Target Achieved Difference Reason
{!! str_replace(['', ''], ['', ' '], $value['month']) !!} {!! str_replace(['', ''], ['', ' '], $value['particulars']) !!} {!! str_replace(['', ''], ['', ' '], $value['unit']) !!} {!! str_replace(['', ''], ['', ' '], $value['current_year_target_set']) !!} {!! str_replace(['', ''], ['', ' '], $value['current_year_achieved']) !!} {!! str_replace(['', ''], ['', ' '], $value['current_year_difference']) !!} {!! str_replace(['', ''], ['', ' '], $value['reason']) !!} {!! str_replace(['', ''], ['', ' '], $value['previours_year_target_set']) !!} {!! str_replace(['', ''], ['', ' '], $value['previours_year_achieved']) !!} {!! str_replace(['', ''], ['', ' '], $value['previours_year_difference']) !!} {!! str_replace(['', ''], ['', ' '], $value['reason1']) !!} {!! str_replace(['', ''], ['', ' '], $value['next_previours_year_target_set']) !!} {!! str_replace(['', ''], ['', ' '], $value['next_previours_year_achieved']) !!} {!! str_replace(['', ''], ['', ' '], $value['next_previours_year_difference']) !!} {!! str_replace(['', ''], ['', ' '], $value['reason2']) !!}
{!! str_replace(['', ''], ['', ' '], $value['month']) !!}{!! str_replace(['', ''], ['', ' '], $value['particulars']) !!} {!! str_replace(['', ''], ['', ' '], $value['unit']) !!} {!! str_replace(['', ''], ['', ' '], $value['current_year_target_set']) !!} {!! str_replace(['', ''], ['', ' '], $value['current_year_achieved']) !!} {!! str_replace(['', ''], ['', ' '], $value['current_year_difference']) !!} {!! str_replace(['', ''], ['', ' '], $value['reason']) !!} {!! str_replace(['', ''], ['', ' '], $value['previours_year_target_set']) !!} {!! str_replace(['', ''], ['', ' '], $value['previours_year_achieved']) !!} {!! str_replace(['', ''], ['', ' '], $value['previours_year_difference']) !!} {!! str_replace(['', ''], ['', ' '], $value['reason1']) !!} {!! str_replace(['', ''], ['', ' '], $value['next_previours_year_target_set']) !!} {!! str_replace(['', ''], ['', ' '], $value['next_previours_year_achieved']) !!} {!! str_replace(['', ''], ['', ' '], $value['next_previours_year_difference']) !!} {!! str_replace(['', ''], ['', ' '], $value['reason2']) !!}