@if(count($sections)>0) @foreach($sections as $key=>$section)
@if(count($section->packages)>0) @foreach($section->packages as $key=>$package) @php $color = ''; @endphp @if($package->product_type != 1) @if(fmod($key,4) == 0) @php $color = 'orange'; @endphp @elseif(fmod($key,4) == 1) @php $color = 'light-blue'; @endphp @elseif(fmod($key,4) == 2) @php $color = 'dark-blue'; @endphp @else @php $color = 'green'; @endphp @endif @endif
@if($package->product_type == 1)
{{$package->package_name}}
@if($coachingDetails->logo) @else @endif

@if($package->rating > 0){{number_format(($package->rating),1)}} @else{{'0.0'}} @endif

({{$package->rating_count}} Ratings)

{{$coachingDetails->coaching_name}}

{{$package->exam_type}}

  • No of Tests : {{$package->no_of_test}}
  • @php $test_type_name = ''; @endphp @if(isset($package->testByTestType)) @foreach($package->testByTestType as $test_type_key=>$test_types) @if(isset($test_types->testTypeByTest) && $test_type_key < 2) @php $test_type_name .= $test_types->count.' '.$test_types->testTypeByTest->test_type_name.' + '; @endphp @endif @endforeach @if(count($package->testByTestType)>0)
  • {{trim($test_type_name, ' + ')}}
  • @else
  • N/A
  • @endif @endif @php $test_language = ''; $languages = explode(' & ',$package->languages); @endphp @if(count($languages)>0) @foreach($languages as $lang) @if($lang == 1) @php $test_language .= 'English | '; @endphp @else @php $test_language .= 'Hindi | '; @endphp @endif @endforeach @endif
  • {{trim($test_language, ' | ')}}
  • Validity {{($package->validity_type ==0) ? $package->validity : date('d-m-Y', strtotime($package->expire_date))}}
@if($package->sale_type < 4) @if($package->discount_price > 0) @php $show_btn = ($package->share_unlock_discount_price ? 'Share & Unlock' : 'Buy Now') ; $show_price = $package->discount_price." ".$package->product_price."" ; @endphp @else @php $show_btn = 'Buy Now' ; $show_price = $package->product_price; @endphp @endif @else @php $show_btn = 'Unlock Free' ; $show_price = 0 ; @endphp @endif

{!!$show_price!!} /-

@else

{{(($package->product_type == 2) ? $package->set_name : $package->quiz_name)}}

Attempted by {{$package->total_attempt}}

{{$coachingDetails->coaching_name}}
@if($coachingDetails->logo) @else @endif

@if($package->rating > 0){{number_format(($package->rating),1)}} @else{{'0.0'}} @endif

({{$package->rating_count}} Ratings)

{{$coachingDetails->city.', '.$coachingDetails->name}}

{{$package->exam_type}}

@if($package->product_type == 2)
  • Total Chapters : @if(isset($package->chapters)){{count($package->chapters)}}@else{{0}}@endif
  • Total Questions : @if(isset($package->questions)){{count($package->questions)}}@else{{0}}@endif
  • {{(($package->language_id == 1) ? 'English' : 'Hindi')}}
@else
  • Questions : @if(isset($package->questions)){{count($package->questions)}}@else{{0}}@endif
  • Time : {{$package->duration}}
  • {{(($package->language_id == 1) ? 'English' : 'Hindi')}}
@endif
@endif
@endforeach @else No products found.. @endif
@if($section->total_packages >2)
View More
@endif
@endforeach @else No products found.. @endif