@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_setting()->timezone)->format(global_setting()->date_format . ' ' . global_setting()->time_format) }}

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