Использовать @append вместо @endsection
@forelse($collection as $item) some text @section('section_name') // link to stylesheet @append @empty // something went wrong @endforelse