@forelse ($dateWiseData as $key => $dateData) @php $currentDate = \Carbon\Carbon::parse($key); @endphp @if (isset($dateData['attendance']) && ($dateData['attendance'] == true) && $dateData['leave'] != true)
{{ $currentDate->translatedFormat(company()->date_format) }}
{{ $currentDate->translatedFormat('l') }}
@lang('modules.attendance.present')
@foreach ($dateData['attendance'] as $attendance) {{ $attendance->clock_in_time->timezone(company()->timezone)->translatedFormat(company()->time_format) }} @if ($attendance->late == 'yes')
@lang('modules.attendance.late')
@endif @if ($attendance->half_day == 'yes')
@lang('modules.attendance.halfDay')
@if($attendance->half_day_type == 'first_half') ( @lang('modules.leaves.1stHalf') ) @elseif ($attendance->half_day_type == 'second_half') ( @lang('modules.leaves.2ndHalf') ) @else @endif
@endif @if ($attendance->work_from_type != '') @if ($attendance->work_from_type == 'other')
{{ $attendance->location }} ({{$attendance->working_from}}) @else
{{ $attendance->location }} ({{$attendance->work_from_type}}) @endif @endif @if (!is_null($attendance->clock_out_time)) {{ $attendance->clock_out_time->timezone(company()->timezone)->translatedFormat(company()->time_format) }} @if($attendance->auto_clock_out)
@lang('modules.attendance.autoClockOut') @endif @else - @endif @endforeach
{{ $attendance->totalTime($attendance->clock_in_time, $attendance->clock_in_time, $attendance->user_id) }}
@lang('app.details')
@else
{{ $currentDate->translatedFormat(company()->date_format) }}
{{ $currentDate->translatedFormat('l') }}
@if (!$dateData['holiday'] && !$dateData['leave'])
@lang('modules.attendance.absent')
@elseif($dateData['leave']) @if ($dateData['leave']['duration'] == 'half day')
@lang('modules.attendance.leave')
@lang('modules.attendance.halfDay')
@else
@lang('modules.attendance.leave')
@endif @else
@lang('modules.attendance.holiday')
@endif @if (isset($dateData['attendance']) && ($dateData['attendance'] == true))
@foreach ($dateData['attendance'] as $attendance) {{ $attendance->clock_in_time->timezone(company()->timezone)->translatedFormat(company()->time_format) }} @if ($attendance->late == 'yes')
@lang('modules.attendance.late')
@endif @if ($attendance->half_day == 'yes')
@lang('modules.attendance.halfDay')
@endif @if ($attendance->work_from_type != '') @if ($attendance->work_from_type == 'other')
{{ $attendance->location }} ({{$attendance->working_from}}) @else
{{ $attendance->location }} ({{$attendance->work_from_type}}) @endif @endif @if (!is_null($attendance->clock_out_time)) {{ $attendance->clock_out_time->timezone(company()->timezone)->translatedFormat(company()->time_format) }} @else - @endif @endforeach
{{ $attendance->totalTime($attendance->clock_in_time, $attendance->clock_in_time, $attendance->user_id) }}
@lang('app.details')
@else
-
-
- - @endif @endif @empty
@endforelse