Materials List

@foreach ($groups as $key => $group)

@if (AppHelper::instance()->is_active_student($coffid)) @forelse ($topics as $key=>$topic) @if (AppHelper::instance()->groupTopicsMaterials($topic->id, $group->gid))
{{ $topic->name }}
@foreach ($materials as $key => $material) @if ($material->course_topic_id == $topic->id && $material->gid == $group->gid) @if ($material->checkIFMaterialAllowedMeeting($material->id, $coffid, $material->restrict_by_meeting)) @if ($material->is_free) @elseif ($material->is_paid) @php $paid = in_array( $material->id, $paid_materials->pluck('material_id')->toArray(), ) ? true : false; @endphp
@if (!$paid)
Price : {{ $material->amount_due }} L.E
@endif
@endif
@if ($material->desc) @endif @foreach ($material_attachments->where('mid', $material->id) as $attachment) @if ($attachment->type == 'ogg' || $attachment->type == 'mp4' || $attachment->type == 'mp3') @else
@endif @endforeach
@endif @endif @endforeach @foreach ($hyper_materials as $key => $material) @if ($material->course_topic_id == $topic->id && $material->gid == $group->gid) @if ($material->checkIFMaterialAllowedMeeting($material->id, $coffid, $material->restrict_by_meeting)) @if ($material->is_free) @elseif ($material->is_paid) @php $paid = in_array( $material->id, $hyper_paid_materials ->pluck('material_id') ->toArray(), ) ? true : false; @endphp
@if (!$paid)
Price : {{ $material->amount_due }} L.E
@endif
@endif
@if ($material->desc) @endif You can download the materials from links bellow: @php $counter = 1; @endphp @foreach ($hyper_material_attachments as $link) @if ($link->mid == $material->id)
File {{ $counter++ }} : Click Here.
@endif @endforeach
@endif @endif @endforeach
@endif @empty

No data been found

@endforelse @else

You are not an active student. You have to watch at least one recording or attend one of the upcoming sessions

@endif
@endforeach @php $gkey = 1000; @endphp @foreach ($composed_groups as $group) @php $gkey += 1; @endphp

@foreach ($materials_composed_group as $key => $material) @if ($material->compose_group_id == $group->compose_group_id) @if ($material->course_topic_id == $topic->id) @if ($material->checkIFMaterialAllowedMeeting($material->id, $coffid, $material->restrict_by_meeting)) @if ($material->is_free) @elseif ($material->is_paid) @php $paid = in_array( $material->id, $paid_materials->pluck('material_id')->toArray(), ) ? true : false; @endphp
@if (!$paid)
Price : {{ $material->amount_due }} L.E
@endif
@endif
@if ($material->desc) @endif @foreach ($material_attachments->where('mid', $material->mid) as $attachment) @if ($attachment->type == 'ogg' || $attachment->type == 'mp4' || $attachment->type == 'mp3') @else
@endif @endforeach
@endif @endif @endif @endforeach @foreach ($hyper_materials_composed_group as $key => $material) @if ($material->compose_group_id == $group->compose_group_id) @if ($material->course_topic_id == $topic->id ) @if ($material->checkIFMaterialAllowedMeeting($material->id, $coffid, $material->restrict_by_meeting)) @if ($material->is_free) @elseif ($material->is_paid) @php $paid = in_array( $material->id, $hyper_paid_materials ->pluck('material_id') ->toArray(), ) ? true : false; @endphp
@if (!$paid)
Price : {{ $material->amount_due }} L.E
@endif
@endif
@if ($material->desc) @endif You can download the materials from links bellow: @php $counter = 1; @endphp @foreach ($hyper_material_attachments as $link) @if ($link->mid == $material->id)
File {{ $counter++ }} : Click Here.
@endif @endforeach
@endif @endif @endif @endforeach
@endforeach