@extends("common.layout") @section("header") {!! resource('js/components/tab.js') !!} {!! resource('js/enrollment/academy-course.js') !!} {!! resource('css/components/hybrid-table.css') !!} @endsection @section("content") @php use Carbon\Carbon; $isAttendanceDate = ! empty($date); $year = Request::get('year',date('y') ); $month = Request::get('month',date('m') ); @endphp
| 수강생명 | 번호뒷자리 | 수강기간 | 강좌종료기간 | 재등록분류 | 특이사항 | |
|---|---|---|---|---|---|---|
| {{ $index + 1 }} |
@if ($enrollment->user->photo_url)
$enrollmentCourse->is_sprout == 1 ]) data-id="{{ $enrollmentCourse->id }}">
@if ($enrollment->module == 'general')
(G)
@endif
{{ $enrollment->user->name }}
|
{{ substr($enrollment->user->getPlain('phone'), -4, 4) }} | ~ {{ date('y.m.d' , strtotime($enrollment->ended_at)) }} | ~ {{ date('y.m.d' , strtotime($enrollmentCourse->ended_at)) }} |
|
| $d == Carbon::now()->toDateString(), "onSelect" => $d <= Carbon::now()->toDateString() ]) data-date="{{ $d }}">{{ date('d', strtotime($d)) }} | @endforeach {{--출석 | 결석 | 지각 | --}}수강현황 |
|---|---|---|---|---|
| $d == Carbon::now()->toDateString(),
"disabled" => $d < $enrollmentCourse->started_at || $d > $enrollmentCourse->ended_at ])>
@if ( $d >= $enrollmentCourse->started_at && $d <= $enrollmentCourse->ended_at && $d <= Carbon::now()->toDateString() )
@php
$status = $time = "";
$isAdmin = true;
if ( isset($list[$enrollmentCourse->id][$d]) ) {
$info = $list[$enrollmentCourse->id][$d];
$status = $info['status'];
$isAdmin = $info['is_admin'];
$time = date("H:i", strtotime($info['created_at']));
}
@endphp
$d <= Carbon::now()->toDateString() ,
]) data-attendance-date="{{ $d }}">
@endif
|
@endforeach
{{-- {{ isset($count['attend']) ? $count['attend'] : 0 }} | {{ isset($count['absent']) ? $count['absent'] : 0 }} | {{ isset($count['late']) ? $count['late'] : 0 }} | --}}'academy', 'id' => $enrollmentCourse->enrollment->id]) }}" target="_blank">보기 |