@extends('layouts.student') @section('content')
@if (Session::get('success-alert') != null) @endif {{$courses->has_label ? '( '.$courses->label.' )' : ''}} {{ $courses->acyname }}_{{$courses->cname}} ({{$courses->lshort_name}})
{{-- @if ($is_enrolled && !$student_has_transaction && $courses->enrollment_whatsapp_group)
{{QrCode::size(150)->generate(route('enrollment-whatsApp-qrCode',$courses->coffid))}}

Enrollment WhatsApp Group.

Can't join with QR code? join

@endif --}}
{{-- OverView --}}

@lang('student.course-page.desciribtion')

Course Code: {{$courses->ccode}}
level: {{$courses->lname}}

{{$courses->cdescription}}

@if($courses->cdescription) @lang('student.course-page.view more') @endif
{{-- Teacher --}}

img

{{$courses->ttname}}

@php $teacher = 0; @endphp @foreach ($teachingTeamMembers as $member ) @endforeach
id Teacher
{{++$teacher}} {{$member->first_name .' '. $member->last_name}} @if ($member->is_coach)

Main Teacher

@endif
{{-- Whatsapp --}} {{-- @if($is_enrolled && $enrollment->fees_by_lesson && $student_has_transaction) @if ($attendance_count < 2) @if (isset($first_favourite_group))
@if($first_favourite_group->student_whatsapp_group)
{{QrCode::size(150)->generate(route('student-whatsApp-qrCode',[$first_favourite_group->coffid,$first_favourite_group->gid]))}}

Student WhatsApp Group

Can't join with QR code? join

@endif @if($first_favourite_group->parent_whatsapp_group)
{{QrCode::size(150)->generate(route('parent-whatsApp-qrCode',[$first_favourite_group->coffid,$first_favourite_group->gid]))}}

Parent WhatsApp Group.

Can't join with QR code? join

@endif
@endif @endif @endif --}} {{-- if student is by course --}} {{-- if the first installment is paid show the qr if he has fav groups--}} {{-- @if ($is_enrolled && !$enrollment->fees_by_lesson && $first_paid_installment) @if (isset($first_favourite_group))
@if($first_favourite_group->student_whatsapp_group)
{{QrCode::size(150)->generate(route('student-whatsApp-qrCode',[$first_favourite_group->coffid,$first_favourite_group->gid]))}}

Student WhatsApp Group

Can't join with QR code? join

@endif @if($first_favourite_group->parent_whatsapp_group)
{{QrCode::size(150)->generate(route('parent-whatsApp-qrCode',[$first_favourite_group->coffid,$first_favourite_group->gid]))}}

Parent WhatsApp Group.

Can't join with QR code? join

@endif
@endif @endif --}}
  • @if ($courses->youtube_link) img @else img @endif
{{--
--}}
@php // check if the course is egp if($courses->currency == 2){ $currency = 'EGP'; $amount_per_course=$courses->fee_per_course_total; $amount_per_lesson=$courses->fee_per_lesson_total; $amount_per_month=$courses->fee_course_per_month; }else{ // check if the student enrolled if($is_enrolled){ // show the price according to the enrollment currency $currency = $paymentGateway == 1 ? 'AED':'EGP'; // if by lesson we show the lesson amount due from enrollment and calculate the course amount from course offering if($enrollment->fees_by_lesson){ $amount_per_lesson=$paymentGateway == 1 ? $enrollment->amount_due_aed : $enrollment->amount_due; $amount_per_course=$paymentGateway == 1 ? $courses->fee_per_course_total : $courses->fee_per_course_total * $enrollment->rate; $amount_per_month=0; }else{ // if by course we show the course amount from enrollment and calculate the lesson amount from course offering $amount_per_lesson=$paymentGateway == 1 ? $courses->fee_per_lesson_total : $courses->fee_per_lesson_total * $enrollment->rate; $amount_per_course=$paymentGateway == 1 ? $enrollment->amount_aed : $enrollment->amount; $amount_per_month=$paymentGateway == 1 ? $courses->fee_course_per_month : $courses->fee_course_per_month * $enrollment->rate; } }else{ // else we display the price according to the student profile $currency= $paymentGateway == 1 ? 'AED':'EGP'; $amount_per_course= $paymentGateway == 1 ? $courses->fee_per_course_total : ($courses->is_priced ? $courses->fee_per_course_total_egp : $courses->fee_per_course_total * $currentRate); $amount_per_lesson= $paymentGateway == 1 ? $courses->fee_per_lesson_total : $courses->fee_per_lesson_total * $currentRate; $amount_per_month= $paymentGateway == 1 ? $courses->fee_course_per_month : $courses->fee_course_per_month * $currentRate; } } @endphp
@if ($courses->is_free) @else @if ($courses->fee_per_lesson_total !=0)

{{$amount_per_lesson}} {{ $currency }} / @lang('student.lesson')

@endif @if ($courses->fee_per_course_total != 0)

@if ($courses->by_month) {{$amount_per_month}} {{ $currency }} / @lang('student.month') @elseif ($courses->course_discount > 0 ) {{ $amount_per_course - ($amount_per_course * ($courses->course_discount / 100)) }} {{ $currency }} / @lang('student.course')

{{$amount_per_course}} {{ $currency }} / @lang('student.course')

has discount

@else {{$amount_per_course}} {{ $currency }} / @lang('student.course') @endif

@if ($is_enrolled && $enrollment->fees_by_course == 1) {{-- @lang('student.view installments') --}} @endif
@endif @endif

{{--
@if ($is_enrolled)
@csrf
@lang('student.unenroll')
@if ($enrollment->fees_by_lesson) Change to by course @else @if ($can_change_enroll_to_by_lesson) Change to by lesson @endif @endif @else @if ($courses->is_free && $courses->allow_enrollment)
@csrf
@else @endif @endif
--}}

Groups List

    @forelse ($groups as $group )
  • {{$group->gname}}

    {{-- group details --}}
    {{$group->start_date}}

    Group Start Date!

    {{-- @if($group->can_add_to_favourit && $is_enrolled) @if ($userFavourits->where('gid', $group->gid)->first()) @else @endif @endif --}}
    @php $count=0; @endphp @foreach ( $groupsSchedules->where('gid',$group->gid) as $schedule) @endforeach
    @lang('student.table.id') @lang('student.table.day') @lang('student.table.from') @lang('student.table.to') Class
    {{ ++$count }} {{Str::headline($meetingObject->getDayString($schedule->gsday))}} {{date('h:i A', strtotime($schedule->gsfrom))}} {{date('h:i A', strtotime($schedule->gsto))}} {{$schedule->classname}}
  • @empty

    Looks like There Is No Schedule In This Course

    @endforelse
{{-- Group Recordings --}}
@if ($userFavourits->count()>0)
{{-- --}} @if($is_enrolled) @foreach ($userFavourits as $item ) @endforeach @else

Enroll first to see any extra in this course

@endif
@lang('student.table.group')@lang('student.table.date')
{{$item->gname}} View Recordings
@else

You have to add this group to your favorite to see the recordings

@endif
{{-- Extra Meeting Recordings --}}
{{-- @if($courses->allow_enrollment) --}} @if ($is_enrolled)
@foreach ($course_extra_meetings as $key=>$extra_meeting ) @endforeach
id Title Type Date
{{ ++$key }} {{$extra_meeting->mtitle}} {{$extra_meeting->exmtyname}} {{$extra_meeting->mstartdate}} @if($extra_meeting->is_paid_for_all) View Recording
@else View Recording
@endif
@else

Enroll first to see any extra in this course

@endif {{-- @endif --}}
@if ($is_enrolled) {{-- change enrollment to by course --}} {{-- change enrollment to by lesson --}} @endif @endsection @section('student-js') {{-- Accordion --}} {{-- draw all data tables --}} {{-- Confirm changing the enrollment method --}} {{-- confirm remove from favourit --}} {{-- confirm add to favourit --}} @endsection