@php $editTimelogPermission = user()->permission('edit_timelogs'); $deleteTimelogPermission = user()->permission('delete_timelogs'); @endphp
@lang('app.task') @lang('app.time') @lang('modules.timeLogs.totalHours') @lang('app.earnings') @lang('app.action') @forelse($timelogs as $item) @if (!is_null($item->project_id) && !is_null($item->task_id))
{{ $item->task->heading }}
{{ $item->project->project_name }}
@elseif (!is_null($item->project_id)) {{ $item->project->project_name }} @elseif (!is_null($item->task_id)) {{ $item->task->heading }} @endif

{{ $item->start_time->timezone($global->timezone)->format($global->date_format . ' ' . $global->time_format) }}

{{ $item->end_time->timezone($global->timezone)->format($global->date_format . ' ' . $global->time_format) }} {{ $item->hours }} {{ currency_formatter($item->earnings) }} @if ($item->approved) @endif
@lang('app.view')
@empty @lang('messages.noRecordFound') @endforelse