@lang('app.timeLog') @lang('app.details')

@if ( $editTimelogPermission == 'all' || ($editTimelogPermission == 'added' && $timeLog->added_by == user()->id) || ($editTimelogPermission == 'owned' && (($timeLog->project && $timeLog->project->client_id == user()->id) || $timeLog->user_id == user()->id) ) || ($editTimelogPermission == 'both' && (($timeLog->project && $timeLog->project->client_id == user()->id) || $timeLog->user_id == user()->id || $timeLog->added_by == user()->id)) ) @endif
@if (!is_null($timeLog->end_time)) @elseif(!is_null($timeLog->activeBreak))

@lang('modules.timeLogs.endTime')

@lang('modules.timeLogs.paused')

@else

@lang('modules.timeLogs.endTime')

@lang('app.active')

@endif

@lang('app.employee')

@lang('modules.tasks.history')

  • @lang('modules.timeLogs.startTime') {{ $timeLog->start_time->timezone($global->timezone)->format($global->date_format .' '.$global->time_format) }}
  • @lang('app.task') {{ $timeLog->task->heading }}
  • @foreach ($timeLog->breaks as $item)
  • @if (!is_null($item->end_time)) @php $endTime = $item->end_time; $totalHours = $endTime->diff($item->start_time)->format('%d') * 24 + $endTime->diff($item->start_time)->format('%H'); $totalMinutes = $totalHours * 60 + $endTime->diff($item->start_time)->format('%i'); $timeLogHours = intdiv($totalMinutes, 60) . ' ' . __('app.hrs') . ' '; if ($totalMinutes % 60 > 0) { $timeLogHours .= $totalMinutes % 60 . ' ' . __('app.mins'); } @endphp @lang('modules.timeLogs.break') ({{ $timeLogHours }}) {{ $item->start_time->timezone($global->timezone)->format($global->time_format) . ' - ' . $item->end_time->timezone($global->timezone)->format($global->time_format) }} @if ( $editTimelogPermission == 'all' || ($editTimelogPermission == 'added' && $timeLog->added_by == user()->id) || ($editTimelogPermission == 'owned' && (($timeLog->project && $timeLog->project->client_id == user()->id) || $timeLog->user_id == user()->id) ) || ($editTimelogPermission == 'both' && (($timeLog->project && $timeLog->project->client_id == user()->id) || $timeLog->user_id == user()->id || $timeLog->added_by == user()->id)) ) @endif @else @lang('modules.timeLogs.break') {{ $item->start_time->timezone($global->timezone)->format($global->time_format) }} @endif
  • @endforeach @if (!is_null($timeLog->end_time))
  • @lang('modules.timeLogs.endTime') {{ $timeLog->end_time->timezone($global->timezone)->format($global->date_format . ' ' . $global->time_format) }}
  • @endif