@extends("common.layout-popup") @section("header") @endsection @section("page-title", "출석율 확인") @section("content") @php $usedDate = $enrollment->getEnrollmentPeriod() ; $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)) }}
@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 < 5 ; $i ++) @endfor @endif @php $isBgColor = ! $isBgColor; @endphp @endforeach @endif
일자 회차 강좌명 강의명 진도율 이어듣기
[휴강기간] {{ $pStartDate }} ~ {{ $pEndDate }}
! $isAttendance ])>{{ $date }}{{ $item['sort'] }} {{ $item['courseName'] }} {{ $item['lectureName'] }} {{ $item['percentage'] }}% {{ $item['is_acknowledged'] == 2 ? "O" : "-" }}
{{ $date }}-
@endsection @push("script") @endpush