@extends('backend.layouts.app') @section('content')

出退勤一覧

@include('backend.layouts.flash-message')
@php $now_carbon = Carbon::now(); $previous_carbon = Carbon::parse($current_date)->addMonth(-1); $current_carbon = Carbon::parse($current_date); $next_carbon = Carbon::parse($current_date)->addMonth(1); @endphp

$previous_carbon->format('Y-m')]) }}">{{ $previous_carbon->format('Y').'年'.$previous_carbon->format('m').'月' }}

{{ $current_carbon->format('Y').'年'.$current_carbon->format('m').'月' }}

@if(($next_carbon->lessThan($now_carbon)) )

$next_carbon->format('Y-m')]) }}">{{ $next_carbon->format('Y').'年'.$next_carbon->format('m').'月' }}

@endif
{{ Form::open(['route'=>"backend.{$department}.attendance.save_attendance", 'method'=>'post']) }}
@if(Auth::guard('admin')->user()->canChangeOvertimeWorkStatus()) @php if(Auth::guard('admin')->user()->isAttendanceSuperAdmin()) { $users = \App\Service\UserService::getAllUser(); } else { $users = \App\Service\UserService::getAllUser(Auth::guard('admin')->user()->system_parts); } @endphp
@endif
@php $current_year = $current_carbon->format('Y'); $current_month = $current_carbon->format('m'); @endphp @foreach(range(1, cal_days_in_month(CAL_GREGORIAN, $current_month, $current_year), 1) as $day) @php $attendance_date = Carbon::parse($current_carbon->format('Y-m-').$day); @endphp @if(($attendance_date->lessThanOrEqualTo($now_carbon)) ) @else @endif @php $real_work = \App\Service\Attendance\OvertimeWorkService::getRealWorkByUserAndDate($selected_user->id, ($current_carbon->format('Y-m-') . $day)); @endphp @if($real_work) @else @endif @endforeach
日付 曜日 出勤状況 出勤時間 出勤状況 退勤時間 実働時間 残業開始時間 残業終了時間 残業時間
{{$day}} {{config('const.jp_week.'.date('w', strtotime($current_year.'-'.$current_month.'-'.$day)))}} @if(isset($attendances[$day])) {{$attendances[$day]['in_time'] && $attendances[$day]['out_time'] ? round(Carbon::parse($attendances[$day]['in_time'] )->floatDiffInHours($attendances[$day]['out_time']), 2) : ''}} @endif {{ $real_work['start_time'] }} {{ $real_work['end_time'] }} {{ $real_work['work_hours'] }}
{{ Form::close() }}
@endsection @section('page_css') @endsection @section('page_css') @endsection @section('page_js') @endsection