@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

어학센터 수강생 출결관리

@include("enrollment.course.month-selector")
@foreach ( $data as $course_id => $items ) @foreach ( $items as $teacher_ids => $item )
{{ $item['main']['course_name'] }} {{ ! empty($item['main']['teacher_name']) ? "(".$item['main']['teacher_name'].")" : ''}} @if ($isAttendanceDate) @endif
@foreach ( $item['courses'] as $index => $enrollmentCourse) @php $enrollment = $enrollmentCourse->enrollment; @endphp @endforeach
수강생명 번호뒷자리 수강기간 강좌종료기간 재등록분류 특이사항
{{ $index + 1 }}
@if ($enrollment->user->photo_url) @endif
$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)) }}
! $isAttendanceDate])> @if ( $isAttendanceDate ) @foreach ( $date as $d ) @endforeach {{-- --}} @foreach ( $item['courses'] as $enrollmentCourse) @php $count = []; @endphp @foreach ( $date as $d ) @endforeach {{-- --}} @endforeach
$d == Carbon::now()->toDateString(), "onSelect" => $d <= Carbon::now()->toDateString() ]) data-date="{{ $d }}">{{ date('d', strtotime($d)) }}출석 결석 지각수강현황
$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
{{ 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">보기
@else
월별 출석일자가 없습니다.
당월인 경우 개발팀에 문의해주세요
@endif
@endforeach @endforeach
@endsection @push("script") @endpush