1@foreach($items as $item)
2 @if ($loop->first) First Item: @endif
3 <h4>{{ $item->program_name }}</h4>
4@endforeach
1@foreach ($users as $user)
2 @if ($loop->first)
3 This is the first iteration.
4 @endif
5
6 @if ($loop->last)
7 This is the last iteration.
8 @endif
9
10 <p>This is user {{ $user->id }}</p>
11@endforeach