@php $cartData = getCartData(); @endphp @if(!empty($analyses)) @foreach($analyses as $key => $print) @php if($bodyimages) $bodyimg = array_search($print['anaid'],$bodyimages,true); if($mentalimages) $mentalimg = array_search($print['anaid'],$mentalimages,true); $redP = ($print['anaVal_red']*100)/request()->days; $red = round($redP, 0); $greenP = ($print['anaVal_green']*100)/request()->days; $green = round($greenP, 0); @endphp {{-- *************** Progressbar-Analysis name *************** --}}

{{ $print['anaName'] }}

@if(!empty($print['desc']) || !empty($print['url_link']) || !empty($print['bodyDesc']) || !empty($print['mentalDesc']) || !empty($bodyimg) || !empty($mentalimg) || !empty($print['desc_img'])) @endif @if($data['user']->useroption->pattern_switch == 1) {{--
--}} @endif @php $result = 0; foreach ($cartData as $_cart) if($_cart->options->analysisID == $print['anaid'] && $_cart->options->type == 'Analysis') $result = true; @endphp @if ($result == true)
@else
@endif
{{-- *************** Progressbar-Analysis progressbar *************** --}} {{--
{{ $print['anaVal'] }}%
--}}
{{$print['anaVal_red']}}
{{$print['anaVal_green']}}
{{-- *************** Progressbar-Analysis crat up/down icon *************** --}}
@if($print['anaVal'] < $print['beergod']) @endif @if($print['anaVal'] == $print['beergod']) @endif @if($print['anaVal'] > $print['beergod']) @endif
{{-- *************** Progressbar-Analysis heart/male icon *************** --}}
@if(!empty($print['causes']) or !empty($print['medium']) or !empty($print['tipp'])) {{-- *************** Progressbar-Analysis icon *************** --}} @endif @endforeach @endif