@extends($layout) @section('content') @once @push('scripts') @endpush @endonce
@if (! empty($allTickets)) @endif
@php $sum = 0; $billableSum = 0; @endphp @foreach ($allTimesheets as $row) @php $sum = $sum + $row['hours']; @endphp @php $diff = $row['planHours'] - $row['hours']; @endphp @endforeach @endif
{!! __('label.id') !!} {!! __('label.date') !!} {!! __('label.hours') !!} {!! __('label.plan_hours') !!} {!! __('label.difference') !!} {!! __('label.ticket') !!} {!! __('label.project') !!} {!! __('label.client') !!} {!! __('label.employee') !!} {!! __('label.type') !!} {!! __('label.milestone') !!} {!! __('label.tags') !!} {!! __('label.description') !!} {!! __('label.invoiced') !!} {!! __('label.invoiced_comp') !!} {!! __('label.paid') !!}
@if ($login::userIsAtLeast($roles::$manager)) #{{ $row['id'] . ' - ' . __('label.edit') }} @else #{{ $row['id'] }} @endif {{ format($row['workDate'])->date() }} {{ $row['hours'] }} {{ $row['planHours'] }}{{ $diff }} {{ $row['headline'] }} {{ $row['name'] }} {{ $row['clientName'] }} {!! sprintf(__('text.full_name'), $tpl->escape($row['firstname']), $tpl->escape($row['lastname'])) !!} {!! __($kind[$row['kind'] ?? 'GENERAL_BILLABLE'] ?? $kind['GENERAL_BILLABLE']) !!} {{ $row['milestone'] }} {{ $row['tags'] }} {{ $row['description'] }} @if ($row['invoicedEmpl'] == '1') {{ format($row['invoicedEmplDate'])->date() }} @else @if ($login::userIsAtLeast($roles::$manager)) @endif @endif @if ($row['invoicedComp'] == '1') {{ format($row['invoicedCompDate'])->date() }} @else @if ($login::userIsAtLeast($roles::$manager)) @endif @endif @if ($row['paid'] == '1') {{ format($row['paidDate'])->date() }} @else @if ($login::userIsAtLeast($roles::$manager)) @endif @endif
{!! __('label.total_hours') !!} {{ $sum }} @if ($login::userIsAtLeast($roles::$manager)) @endif @if ($login::userIsAtLeast($roles::$manager)) {!! __('label.select_all') !!} @if ($login::userIsAtLeast($roles::$manager)) {!! __('label.select_all') !!} @endif @if ($login::userIsAtLeast($roles::$manager)) {!! __('label.select_all') !!} @endif
@endsection