@extends("common.layout-popup") @section("header") @endsection @section("page-title", "출석율 확인") @section("content") @php // $usedDate = $enrollment->getEnrollmentPeriod() ; $usedDate = $enrollment->productOption->refund_recognition_period ?? $enrollment->productOption->period; $attendanceDate = $enrollment->getLectureAttendanceDate() ; @endphp
수강인정일
{{ $usedDate }}일
출석일
{{ count($attendanceDate )}}일
결석일
{{ $usedDate - count($attendanceDate) }}일
출석율
{{ $enrollment->attendance_rate ?? 0 }}%
임의출석체크
수강기간 : {{ date('Y-m-d', strtotime($enrollment->started_at)) }} ~ {{ date('Y-m-d', strtotime($enrollment->ended_at)) }} ({{ $enrollment->getEnrollmentPeriod() }}일)
@if ($attendances) @php $isBgColor = true; $pStartDate = $pEndDate = null; $isPrintPause = false; if ( $enrollment->enrollmentPause ) { $pStartDate = $enrollment->enrollmentPause->started_at; $pEndDate = $enrollment->enrollmentPause->ended_at; } @endphp @foreach($attendances as $date => $list) @if ( $pStartDate && $pEndDate && $pStartDate <= $date && $pEndDate >= $date) @if (! $isPrintPause) @php $isPrintPause = true; continue; @endphp @else @php continue; @endphp @endif @endif @php $isAttendance = in_array( $date, $attendanceDate); @endphp @if (count($list) > 0) @foreach ($list as $key => $item) $isBgColor])> @if ($key == 0) @endif @endforeach @else $isBgColor])> @for ($i = 0 ; $i < 6 ; $i ++) @endfor @endif @php $isBgColor = ! $isBgColor; @endphp @endforeach @endif
일자 회차 강좌명 강의명 진도율 이어듣기 수강기간
[휴강기간] {{ $pStartDate }} ~ {{ $pEndDate }}
! $isAttendance ])>{{ $date }}{{ $item['sort'] }} ($isAttendance && $item['percentage'] == 0) ]) data-date="{{ $date }}">{{ $item['courseName'] }} {{ $item['lectureName'] }} {{ $item['percentage'] }}% {{ $item['is_acknowledged'] == 2 ? "O" : "-" }} @if (is_array($item["due"]))
    @foreach ( $item['due'] as $key => $due)
  • @if ( $key > 0 )
    @endif {{ $key + 1 }}. {{ $due }}
  • @endforeach
@else {{ $item["due"] }} @endif
{{ $date }}-
@endsection @push("script") @endpush