{{-- --}} @if(count($marketing)) {{-- --}} @php $i =0; @endphp @foreach($marketing as $i => $item) @php $i ++; @endphp {{-- --}} @endforeach @endif