@foreach ($subjects ?? [] as $subject) {{ $subject->name }} @endforeach @if($subjects->count() == 0) لا يوجد مواد لهذا الفصل @endif