@if (AppHelper::instance()->is_active_student($coffid))
@forelse ($topics as $key=>$topic)
@if (AppHelper::instance()->groupTopicsMaterials($topic->id, $group->gid))
@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
@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
@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)
@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