@extends('ielts.layout')
@section('ielts-css')
{!! resource('css/ielts/sub.css') !!}
{!! resource('css/myclass/my_class_mo.css') !!}
{!! resource('css/myclass/my_class_mo_ielts.css') !!}
{!! resource("css/components/calendar.css") !!}
@endsection
@section("ielts-content")
{{-- @if ($service == 'ielts')--}}
@if ($latestAttendance)
-
수강 중인 강의
{{$latestAttendance->enrollmentCourseLecture->name}}
@if ($latestAttendance)
{{$finishedLectures}}강/{{$totalLectures}}강
@endif
@endif
@if ($nextLecture)
-
다음강의
{{ $nextLecture->name }}
{{$finishedLectures + 1}}강/{{$totalLectures}}강
@endif
@foreach($ongoingEnrollments as $enrollment)
@php
$startedAt = Carbon::parse($enrollment->started_at)->format('Y.m.d');
$endedAt = Carbon::parse($enrollment->ended_at)->format('Y.m.d');
$remainingDays = Carbon::now()->diffInDays(Carbon::parse($enrollment->ended_at), false);
@endphp
-
- {{\BaseHelper::ucfirstWithDelimiter($enrollment->module, '|')}}
@if ($enrollment->product->is_extensible)
- 무료연장
@endif
- 진도율 {{ round($enrollment->progress_rate) ?? 0 }}%
{{ $enrollment->product->name }}
{{ $enrollment->productOption->name }}
- 수강기간 :
- {{ $startedAt }} ~ {{ $endedAt }}
({{ $remainingDays > 0 ? $remainingDays . "일 남음" : "종료됨" }})
@if($enrollment->enrollmentTextbooks->isNotEmpty())
- 교재 :
-
@foreach ($enrollment->enrollmentTextbooks as $textbook)
{{ $textbook->name }}
@endforeach
@endif
@if ($enrollment->product->is_pausable && !$enrollment->pausable)
-
휴강신청
@endif
@if ($enrollment->is_refundable)
-
출석확인
@endif
-
수강후기 작성
@if ($enrollment->status == 'READY')
강의실 입장
@else
강의실 입장
@endif
@endforeach
@foreach($endedEnrollments as $enrollment)
@php
$startedAt = Carbon::parse($enrollment->started_at)->format('Y.m.d');
$endedAt = Carbon::parse($enrollment->ended_at)->format('Y.m.d');
$remainingDays = Carbon::now()->diffInDays(Carbon::parse($enrollment->ended_at), false);
@endphp
-
- {{\BaseHelper::ucfirstWithDelimiter($enrollment->product->module, '|')}}
@if($enrollment->status == 'PAUSED')
- 휴강중
@endif
{{ $enrollment->product->name }}
{{ $enrollment->productOption->name }}
- 수강기간 :
- {{ $startedAt }} ~ {{ $endedAt }} ({{ $remainingDays > 0 ? $remainingDays . "일 남음" : "종료됨" }})
@if($enrollment->enrollmentTextbooks->isNotEmpty())
- 교재 :
-
@foreach ($enrollment->enrollmentTextbooks as $textbook)
{{ $textbook->name }}
@endforeach
@endif
@if ($enrollment->progress_rate < 100 && $enrollment->ended_at > now() && $enrollment->status == 'PAUSED')
-
휴강해제
@endif
@if ($enrollment->is_refundable)
-
출석확인
@endif
-
수강평 작성
@endforeach
@endsection
@section('ielts-script')
{!! resource('js/components/calendar.js') !!}
{!! resource('js/ielts/my_class.js') !!}
@endsection