class ViewModel extends ViewRecord{ protected static string $resource = ModelResource::class; public Model|int|string|null $record = null; public function mount(int|string $record): void { $this->record = Model::find($record); $this->record->fillApplicationPersonalInfo(); $this->fillForm(); }}