{{-- @php
$selectedMonth = strtolower($response_arr['month'] ?? '');
$selectedYear = $response_arr['year'] ?? '';
@endphp --}}
-
{{-- @foreach ($response_arr['monthList'] as $item)
@php
$month = strtolower($item['month']);
$year = $item['year'];
$isActive =
$month === $selectedMonth && $year == $selectedYear ? 'active' : '';
@endphp
-
{{ ucfirst($month) }}
{{ $year }}
@endforeach --}}
Name : {{ $response_arr['doctorInfo']['doctorName'] }}
{{--Specialilty : {{ $response_arr['doctorInfo']['speciallityName'] }}
--}}MSL No. : {{ $response_arr['doctorInfo']['mslNo'] }}
{{ $response_arr['doctorInfo']['email'] }}
{{ $response_arr['doctorInfo']['contactNo'] }}
{{-- --}}
{{-- View DPM Card --}}
{{--
--}}
{{--
{{ ucfirst($selectedMonth) . '-' . $selectedYear . ' Support' }}
--}}
@if (!empty($response_arr['productList']) && !empty($response_arr['supportList']))
@else
| Month | @foreach ($response_arr['productList'] as $product){{ $product->productName }} | @endforeach
|---|---|
| {{ ucfirst($monthKey) }} | @foreach ($response_arr['productList'] as $index => $product) @php $supportCount = isset($monthData[$index + 1]) ? (int) $monthData[$index + 1] : 0; $productPrice = (float) $product->productPrice; $isFirstHalf = in_array(strtolower($monthKey), ['apr', 'may', 'jun', 'jul', 'aug', 'sep']); $potentialSource = $isFirstHalf ? $response_arr['potentialList']['first'] ?? [] : $response_arr['potentialList']['second'] ?? []; $potentialValue = isset($potentialSource[$index + 1]) ? (float) $potentialSource[$index + 1] : 0; $adjustedPotential = $potentialValue / 6; $calculatedValue = $productPrice * 2 * 4 * $supportCount * $adjustedPotential; @endphp{{ $supportCount }} | @endforeach
No Data Found
@endif
{{--
--}}