@php $lock = $submitted || $readOnly; $input = 'w-full rounded-xl border border-input bg-white px-3.5 text-[16px] outline-none transition focus:border-ring focus:ring-4 focus:ring-ring/20 disabled:bg-muted sm:text-sm'; $lbl = 'mb-1 block text-xs font-semibold text-foreground'; $kinds = ['completed' => 'completed', 'incomplete' => 'incomplete']; $maxMb = rtrim(rtrim(number_format($limits['max_file_bytes'] / 1048576, 1), '0'), '.').' MB'; @endphp

{{ __('reports.daily.header.title') }}

{{ __('reports.daily.header.subtitle') }}

$submitted, 'bg-muted text-muted-foreground' => ! $submitted])>{{ $submitted ? __('reports.status.SUBMITTED') : __('reports.status.DRAFT') }}
@if ($submitted && $submittedAt)

{{ __('reports.daily.header.submittedAt', ['when' => $submittedAt->setTimezone($timezone)->format('d.m.Y H:i')]) }}

@endif
@if ($readOnly && ! $submitted)

{{ __('reports.errors.DATE_TOO_OLD') }}

@endif @if ($submitted)

{{ __('reports.daily.locked') }}

@endif
@if ($error && in_array($error, ['DATE_IN_FUTURE', 'VALIDATION'])) @else @foreach ($kinds as $kind => $_) @php($items = $kind === 'completed' ? $completed : $incomplete)

{{ __('reports.daily.'.$kind.'.title') }}

{{ __('reports.daily.'.$kind.'.subtitle') }}

@if (count($items) === 0)

{{ __('reports.daily.'.$kind.'.empty') }}

@endif @unless ($lock) @endunless
@endforeach

{{ __('reports.daily.notes.title') }}

{{ __('reports.daily.notes.subtitle') }}

{{ __('reports.daily.attachments.title') }}

{{ __('reports.daily.attachments.subtitle') }}

@if ($attachments->isNotEmpty()) @endif @unless ($lock) {{ __('common.loading') }}

{{ __('reports.daily.attachments.hint', ['count' => $limits['max_attachments'], 'max' => $maxMb]) }}

@endunless @if ($attachmentError)@endif
@if ($error) @elseif ($notice === 'draftSaved')

{{ __('reports.daily.toast.draftSaved') }}. {{ __('reports.daily.toast.draftSavedBody') }}

@elseif ($notice === 'submitted')

{{ __('reports.daily.toast.submitted') }}. {{ __('reports.daily.toast.submittedBody') }}

@endif
@unless ($lock)

{{ __('reports.daily.actions.summary', ['completed' => count($completed), 'incomplete' => count($incomplete)]) }}

@endunless @endif @if ($confirming)
@endif

{{ __('reports.history.title') }}

{{ __('reports.history.subtitle') }}

@if ($history->isEmpty())

{{ __('reports.history.emptyTitle') }}

{{ __('reports.history.emptyBody') }}

@else @endif