@lang('app.attendanceDetails')
@php $minimumHalfDayMinutes = ((float)$attendance->shift->flexible_half_day_hours * 60); $totalMinimumMinutes = ((float)$attendance->shift->flexible_total_hours * 60); $clockedTotalMinutes = floor((float)$totalTime / 60); @endphp @if ($attendance->shift->shift_type == 'flexible') @if ($clockedTotalMinutes < $minimumHalfDayMinutes)
@lang('messages.halfdayHoursNotComplete')
@elseif($clockedTotalMinutes >= $minimumHalfDayMinutes && $clockedTotalMinutes < $totalMinimumMinutes)
@lang('messages.willMarkHalfDay')
@endif @endif
@lang('modules.attendance.clock_in')

{{ $startTime->translatedFormat(company()->time_format) }}

{{ $totalTimeFormatted }}

{{ $endTime != '' ? $endTime->translatedFormat(company()->time_format) : '' }} @if (isset($notClockedOut)) (@lang('modules.attendance.currentTime')) @endif

@foreach ($attendanceActivity->reverse() as $item)
  • @lang('modules.attendance.clock_in') @if (!is_null($item->employee_shift_id)) @if ($item->shift->shift_name != 'Day Off') {{ $item->shift->shift_name }} @else {{ __('modules.attendance.' . str($attendanceSettings->shift_name)->camel()) }} @endif @endif

    {{ $item->clock_in_time->timezone(company()->timezone)->translatedFormat(company()->date_format . ' ' . company()->time_format) }} @if ($item->work_from_type != '') @if ($item->work_from_type == 'other') {{ $item->location }} {{ $item->working_from != '' ? '(' . $item->working_from . ')' : '' }} @else {{ $item->location }} ({{$item->work_from_type}}) @endif @endif @if ($item->late == 'yes') @lang('modules.attendance.late') @endif @if ($item->half_day == 'yes') @lang('modules.attendance.halfDay') @if($item->half_day_type == 'first_half') ( @lang('modules.leaves.1stHalf') ) @elseif ($item->half_day_type == 'second_half') ( @lang('modules.leaves.2ndHalf') ) @else @endif @endif

  • @lang('modules.attendance.clock_out')

    @if (!is_null($item->clock_out_time)) {{ $item->clock_out_time->timezone(company()->timezone)->translatedFormat(company()->date_format . ' ' . company()->time_format) }} @if($item->auto_clock_out) @lang('modules.attendance.autoClockOut') @endif @else @lang('modules.attendance.notClockOut') @endif

@endforeach