@use('Brick\Math\BigDecimal') @use('Brick\Money\Money') @use('PhpOffice\PhpSpreadsheet\Cell\DataType') @use('Carbon\CarbonInterval') @inject('interval', 'App\Service\IntervalService') Report

Detailed Report

{{ $start->format('d.m.Y') }} - {{ $end->format('d.m.Y') }}

Duration
{{ $interval->format(CarbonInterval::seconds($aggregatedData['seconds'])) }}
Total cost
{{ Money::of(BigDecimal::ofUnscaledValue($aggregatedData['cost'], 2)->__toString(), $currency)->formatTo('en_US') }}
@foreach($timeEntries as $timeEntry) @endforeach
Time Entry User Time Duration Billable Tags
{{ $timeEntry->description === '' ? '-' : $timeEntry->description }}
@if($timeEntry->task?->name) Task: {{ $timeEntry->task?->name ?? '-' }}
@endif @if($timeEntry->project?->name) Project: {{ $timeEntry->project?->name }}
@endif @if($timeEntry->client?->name) Client: {{ $timeEntry->client?->name }}
@endif
{{ $timeEntry->user->name }} @if($timeEntry->start->format('Y-m-d') === $timeEntry->end->format('Y-m-d')) {{ $timeEntry->start->format('Y-m-d') }} @else {{ $timeEntry->start->format('Y-m-d') }} -
{{ $timeEntry->end->format('Y-m-d') }} @endif
{{ $timeEntry->start->format('H:i:s') }} - {{ $timeEntry->end->format('H:i:s') }}
{{ $interval->format($timeEntry->getDuration()) }} {{ $timeEntry->billable ? 'Yes' : 'No' }} {{ count($timeEntry->tagsRelation) === 0 ? '-' : $timeEntry->tagsRelation->implode('name', ', ') }}