Table of content

@php $i = 0; @endphp @php $sind = 0; @endphp @foreach ($indexingArray as $in) @php $serial = $i+1; @endphp @if($i == 0) @php $sind =$indexingArray[0]->count; @endphp @php $indexCount = '1 - '.$sind; @endphp @endif @if($i > 0) @php $sum = $sind + 1; @endphp @php $sumOne = $indexingArray[$i-1]->count + 1; @endphp @php $seconOne = ($in->count == 1) ? 0 : $sumOne; @endphp @php $totalSum =$sum + $in->count - 1; @endphp @php $sind = $totalSum; @endphp @php $indexCount = $sum.' - '.$totalSum; @endphp @endif @php $i++; @endphp @endforeach
Sno Description Page no
{{ $serial }} {{ $in->title }}{{ $indexCount }}