@use('Brick\Math\BigDecimal') @use('Brick\Money\Money') @use('PhpOffice\PhpSpreadsheet\Cell\DataType') @use('Carbon\CarbonInterval') @inject('interval', 'App\Service\IntervalService') @inject('colorService', 'App\Service\ColorService')
Report
| {{ $group->description() }} | Duration | Cost |
|---|---|---|
|
|
{{ $interval->format(CarbonInterval::seconds($group1Entry['seconds'])) }} | {{ Money::of(BigDecimal::ofUnscaledValue($group1Entry['cost'], 2)->__toString(), $currency)->formatTo('en_US') }} |
| Total | {{ $interval->format(CarbonInterval::seconds($aggregatedData['seconds'])) }} | {{ Money::of(BigDecimal::ofUnscaledValue($aggregatedData['cost'], 2)->__toString(), $currency)->formatTo('en_US') }} |
| {{ $subGroup->description() }} | Duration | Duration (h) | Cost |
|---|---|---|---|
| @if($subGroup->is(\App\Enums\TimeEntryAggregationType::Billable)) {{ $group2Entry['key'] === '1' ? 'Billable' : 'Non-billable' }} @else {{ $group2Entry['description'] ?? $group2Entry['key'] ?? '-' }} @endif | {{ $interval->format($duration) }} | {{ round($duration->totalHours, 2) }} | {{ Money::of(BigDecimal::ofUnscaledValue($group2Entry['cost'], 2)->__toString(), $currency)->formatTo('en_US') }} |