Table of content
| Sno |
Description |
Page no |
@php $i = 0; @endphp
@php $sind = 0; @endphp
@foreach ($indexingArray as $in)
@php $serial = $i+1; @endphp
| {{ $serial }} |
{{ $in->title }} |
@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
{{ $indexCount }} |
@php $i++; @endphp
@endforeach