@extends('Frontend.partials.layout') @php // if(auth()->user()->user_type == 0 && Auth::id() == getID()){ // $submenusList = session()->get('menuList'.getAuthId())['submenu']; // $subids = []; // foreach ($submenusList as $key => $sub) { // if($sub['product_id'] == $data['proid'] && $sub['from'] == 2) // $subids[] = $sub['submenu_id']; // } // $submenus = App\Model\Menu::with(['usersubmenus' => function ($query) use($subids) { // $query->whereIn('id',$subids); // }])->find(request()->ownid); // }else // $submenus = getOwnSubmenusByMenuid(request()->ownid); // if(!empty($submenus->usersubmenus)){ // $first = $submenus->usersubmenus[0]->id; // $last = $submenus->usersubmenus[count($submenus->usersubmenus)-1]->id; // $_submenu = $submenus->usersubmenus; // if(count($_submenu) > 0){ // $nextId = $_submenu->where('id', '>', $data['subid'])->take(1)->first()->id ?? $_submenu->first()->id; // $previousId = $_submenu->where('id', '<', $data['subid'])->sortByDesc('id')->take(1)->first()->id ?? $_submenu->last()->id; // } // // $__count = 0; // // while ($__count <= count($submenus->usersubmenus)) { // // if($submenus->usersubmenus[$__count]->id == $data['subid']){ // // $nextId = $submenus->usersubmenus[$__count + 1]->id; // // $previousId = $submenus->usersubmenus[$__count - 1]->id; // // } // // $__count ++; // // } // } $cartData = getCartDataInstance(1); @endphp @section('content') {{-- analysis content dashboard view --}}
{{-- analysis content header --}}

{{ ucfirst($data['subName']) }}

{{ ucfirst($data['proName']) }}

{{-- layout-top --}} @include('Frontend.partials.includes.layout-top')
{{-- pagenation div --}}
@include('Frontend.partials.includes.ownproduct-paginate-number') {{--
--}}
@if(!empty($analyses)) @foreach($analyses as $key => $print) @php if($bodyimages) $bodyimg = array_search($print['anaid'],$bodyimages,true); else $bodyimg = ""; if($mentalimages) $mentalimg = array_search($print['anaid'],$mentalimages,true); else $mentalimg = ""; @endphp

{!! $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(!empty($print['title']))

{!! $print['title'] !!}


@endif @if(!empty($print['desc']))
{{__('action.main_desc')}}

{!! $print['desc'] !!}

@endif @if($print['desc_img'])
@endif @if(!empty($print['bodyDesc']) || !empty($bodyimg))
{{__('action.body')}}
@endif @if(!empty($print['bodyDesc']))

{!! $print['bodyDesc'] !!}

@endif @if($bodyimg)
@endif @if(!empty($print['mentalDesc']) || !empty($mentalimg))
{{__('action.mental')}}
@endif @if(!empty($print['mentalDesc']))

{!! $print['mentalDesc'] !!}

@endif @if($mentalimg)
@endif @if($print['url_link'] != null) {{ $print['url_name'] ?? trans('action.link') }} @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
@if($print['anaVal'] < $print['beergod']) @endif @if($print['anaVal'] == $print['beergod']) @endif @if($print['anaVal'] > $print['beergod']) @endif
@if(!empty($print['causes']) or !empty($print['medium']) or !empty($print['tipp'])) @endif

{{$print['causes']->title}} {{-- --}} {{-- --}} @php $result = 0; foreach ($cartData as $_cart) if($_cart->options->causes_id == $print['causes']->id && $_cart->options->type == 'Causes') $result = true; // dd($result) @endphp @if ($result == true) @else @endif

{{ $print['causes']->description }}

{{ $print['medium']->title }} @php $result = 0; foreach ($cartData as $_cart) if($_cart->options->medium_id == $print['medium']->id && $_cart->options->type == 'Medium') $result = true; @endphp @if ($result == true) @else @endif

{{ $print['medium']->description }}

{{ $print['tipp']->title }} @php $result = 0; foreach ($cartData as $_cart) if($_cart->options->tipp_id == $print['tipp']->id && $_cart->options->type == 'Tipp') $result = true; @endphp @if ($result == true) @else @endif

{{ $print['tipp']->description }}

@endforeach @endif
{{-- pagenation div --}} {{-- for cart show --}} @include('Frontend.partials.includes.layout-right')
@endsection @section('scripts') @endsection