@php // old() after a validation error is already d.m.Y; the DB value is Y-m-d [H:i:s] $expiraceValue = (string) old('expirace', optional($soubor ?? null)->expirace); if (preg_match('/^\d{4}-\d{2}-\d{2}/', $expiraceValue)) { $expiraceValue = \Carbon\Carbon::parse($expiraceValue)->format('d.m.Y'); } @endphp @csrf @if($showUpload)
@include('components.fileUploader')
@endif
@php ($checked = optional($soubor ?? null)->sendSpravci ? "checked" : "")
Zpět @if(isset($soubor) && $soubor->id) @endif