@if(count($trendingPackages)>0) @foreach($trendingPackages as $series)
{{$series->package_name}}
@if($coachingDetails->logo) @else @endif

@if($series->rating_count > 2){{number_format(($series->rating),2)}} @else{{'-'}} @endif

@if($series->rating_count > 2) ({{$series->rating_count}} Ratings) @else (Not Rated) @endif

{{$coachingDetails->coaching_name}}

@php $exam_type_name = ''; @endphp @if(isset($series->examTypeNames)) @foreach($series->examTypeNames as $exam_types) @php $exam_type_name .= $exam_types->examTypeNames->exam_type.' & '; @endphp @endforeach @endif @php $more_subject = explode(' & ', trim($exam_type_name,' & ')); if(count($more_subject) > 3){ $result_subject = ''; foreach ($more_subject as $keyss=>$valuess) { if($keyss>2){ $result_subject .= '

'.$valuess.'

'; } } $exam_type_name = ''.($more_subject[0].' & '.$more_subject[1].' & '.$more_subject[2]).'+'.(count($more_subject)-3).'
'; } else { $exam_type_name = trim($exam_type_name,' & '); } @endphp {!!$exam_type_name!!}
  • No of Tests : {{$series->no_of_test}}
  • @php $test_type_name = ''; @endphp @if(isset($series->testByTestType)) @foreach($series->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($series->testByTestType)>0)
  • {{trim($test_type_name, ' + ')}}
  • @else
  • N/A
  • @endif @endif @php $test_language = ''; @endphp @if(isset($series->PackageLanguage)) @foreach($series->PackageLanguage as $lang) @if($lang->language_id == 1) @php $test_language .= 'English | '; @endphp @else @php $test_language .= 'Hindi | '; @endphp @endif @endforeach @endif
  • {{trim($test_language, ' | ')}}
  • Validity: {{($series->validity_type ==0) ? $series->validity.' days' : date('d-m-Y', strtotime($series->expire_date))}}
@if($series->status == 6) @if($series->sale_type < 4) @if($series->discount_price > 0) @php $show_btn = 'Unavailable' ; $show_price = $series->discount_price." ".$series->product_price."" ; @endphp @else @php $show_btn = 'Unavailable' ; $show_price = $series->product_price; @endphp @endif @else @php $show_btn = 'Unavailable' ; $show_price = ($series->product_price > 0 ? " ".$series->product_price."" : 0); @endphp @endif @else @if($series->sale_type < 4) @if($series->discount_price > 0) @php $show_btn = ($series->on_sale_status == 1 ? 'Unavailable' : 'Buy Now') ; $show_price = $series->discount_price." ".$series->product_price."" ; @endphp @else @php $show_btn = ($series->on_sale_status == 1 ? 'Unavailable' : 'Buy Now') ; $show_price = $series->product_price; @endphp @endif @else @php $show_btn = ($series->on_sale_status == 1 ? 'Unavailable' : 'Unlock Free') ; $show_price = ($series->product_price > 0 ? " ".$series->product_price."" : 0); @endphp @endif @endif

{!!$show_price!!} /-

@endforeach @else

No Record Found

@endif