@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 ($list) @php $isBgColor = true; $pStartDate = $pEndDate = null; $isPrintPause = false; if ( $enrollment->enrollmentPause ) { $pStartDate = $enrollment->enrollmentPause->started_at; $pEndDate = $enrollment->enrollmentPause->ended_at; } @endphp @foreach($list as $date => $attendances) @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($attendances) > 0) @foreach ($attendances as $key => $item) $isBgColor])> @php $item['percentage'] = isset($item['percentage']) ? $item['percentage'] : 0; @endphp @if ($key == 0) @endif @endforeach @else $isBgColor])> @for ($i = 0 ; $i < 7; $i ++) @endfor @endif @php $isBgColor = ! $isBgColor; @endphp @endforeach @endif
일자 회차 강좌명 강의명 진도율 이어듣기 수강기간 관리
[휴강기간] {{ $pStartDate }} ~ {{ $pEndDate }}
! $isAttendance ])>{{ $date }}{{ isset($item['sort']) ? $item['sort'] : '-' }} ($isAttendance && $item['percentage'] == 0) ]) data-date="{{ $date }}">{!! $item['courseName'] !!} {!! $item['lectureName'] !!} {{ $item['percentage'] }}% {{ $item['is_acknowledged'] == 2 ? "O" : "-" }} @if (isset($item["dues"]))
@foreach ( $item['dues'] as $key => $due) @php $percent = empty($item['total_duration']) ? 0 : round($due['duration'] / $item['total_duration'] * 100); @endphp
$due['date'] == $date ])> {{ $key + 1 }}회차 $due['is_acknowledged'] != 1 , 'badge-success' => $due['is_acknowledged'] == 1])>[{{ $percent > 100 ? 100 : $percent }}%] {{ $due['started_at'] }} ~ {{ $due['ended_at'] }} ({{ gmdate('G:i:s', $due['duration']) }})
@endforeach
@endif
@if ($item['percentage'] > 0) @endif
{{ $date }}-
@endsection @push("script") @endpush