how foreach loop works in blade php code example
Example: forach in larvel blade
@forelse ($array as $element)
// loop here
@empty
// is empty
@endforelse
@forelse ($array as $element)
// loop here
@empty
// is empty
@endforelse