{{-- Shared Staff Attendance form fields. Wrapped by create.blade.php and edit.blade.php. Expects: $item (null on create), $users, $statuses. --}} @php $app = $item ?? null; $date = old('date', $app && $app->date ? $app->date->format('Y-m-d') : ''); @endphp