@extends('adminlte::page') @section('title', $data['title']) @section('content')

Home

{{-- @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'])) @foreach ($response_arr['productList'] as $product) @endforeach @foreach ($response_arr['supportList'] as $monthKey => $monthData) @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 @endforeach @endforeach
Month{{ $product->productName }}
{{ ucfirst($monthKey) }} {{ $supportCount }}
@else
No Data Found
@endif
{{-- --}}
@stop @section('adminlte_js') {{-- --}} @stop