@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.subtitle') }}
{{ __('reports.daily.header.submittedAt', ['when' => $submittedAt->setTimezone($timezone)->format('d.m.Y H:i')]) }}
@endif{{ __('reports.errors.DATE_TOO_OLD') }}
@endif @if ($submitted){{ __('reports.daily.locked') }}
@endif{{ __('reports.errors.'.$error) }}
@else @foreach ($kinds as $kind => $_) @php($items = $kind === 'completed' ? $completed : $incomplete){{ __('reports.daily.'.$kind.'.subtitle') }}
@if (count($items) === 0){{ __('reports.daily.'.$kind.'.empty') }}
@endif{{ __('reports.daily.notes.subtitle') }}
{{ __('reports.daily.attachments.subtitle') }}
@if ($attachments->isNotEmpty()){{ __('reports.daily.attachments.hint', ['count' => $limits['max_attachments'], 'max' => $maxMb]) }}
@endunless @if ($attachmentError){{ __('reports.daily.attachments.errors.'.$attachmentError) }}
@endif{{ __('reports.errors.'.$error) }}
@elseif ($notice === 'draftSaved'){{ __('reports.daily.toast.draftSaved') }}. {{ __('reports.daily.toast.draftSavedBody') }}
@elseif ($notice === 'submitted'){{ __('reports.daily.toast.submitted') }}. {{ __('reports.daily.toast.submittedBody') }}
@endif{{ __('reports.daily.actions.summary', ['completed' => count($completed), 'incomplete' => count($incomplete)]) }}
{{ __('reports.daily.confirm.body', ['completed' => count($completed), 'incomplete' => count($incomplete)]) }}
{{ __('reports.history.subtitle') }}
{{ __('reports.history.emptyTitle') }}
{{ __('reports.history.emptyBody') }}
@else