@extends('Frontend.partials.layout') @php // if(auth()->user()->user_type == 0 && auth()->user()->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; // } // } $cartData = getCartDataInstance(1); @endphp @section('content') {{-- analysis content section --}}
{{-- analysis content header --}}

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

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

{{-- includes layout top --}} @include('Frontend.partials.includes.layout-top')
@include('Frontend.partials.includes.ownproduct-paginate-number') {{-- pagination
--}} {{-- *************** Progressbar Analysis Section *************** --}}
@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); @endphp @if(!empty($print['causes']) or !empty($print['medium']) or !empty($print['tipp'])) @endif @endforeach @endif
{{__('action.Name')}} {{__('action.Value')}}

{{ $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
{{ $print['anaVal'] }}%
@if($print['anaVal'] < $print['beergod']) @endif @if($print['anaVal'] == $print['beergod']) @endif @if($print['anaVal'] > $print['beergod']) @endif
  • {{__('action.causes')}}

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


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

  • {{__('action.medium')}}

    {{ $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 }}

  • {{__('action.tipp')}}

    {{ $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 }}

{{-- ********* Right Slide Panel ************ --}} @include('Frontend.partials.includes.layout-right')
@endsection @section('scripts') @endsection