how get the first item in foreach in laravel
snippet in php

how get the first item in foreach in laravel

user4839

@foreach($items as $item)
    @if ($loop->first) First Item: @endif
    <h4>{{ $item->program_name }}</h4>
@endforeach

php blade first child @foreach

user6850

First Last child laravel blade loop