@lang('app.timeLogDetails')

@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(company()->timezone)->translatedFormat(company()->date_format .' '.company()->time_format) }}
  • @lang('app.task') {{ $timeLog->task->heading }}
  • @foreach ($timeLog->breaks as $item)
  • @if (!is_null($item->end_time)) @lang('modules.timeLogs.break') ({{ \Carbon\CarbonInterval::formatHuman($item->end_time->diffInMinutes($item->start_time)) }}) {{ $item->start_time->timezone(company()->timezone)->translatedFormat(company()->time_format) . ' - ' . $item->end_time->timezone(company()->timezone)->translatedFormat(company()->time_format) }} @if ( !is_null($timeLog->end_time) && ($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(company()->timezone)->translatedFormat(company()->time_format) }} @endif
  • @endforeach @if (!is_null($timeLog->end_time))
  • @lang('modules.timeLogs.endTime') {{ $timeLog->end_time->timezone(company()->timezone)->translatedFormat(company()->date_format . ' ' . company()->time_format) }}
  • @endif