@php // Edit me $subadmin milega, create me null $isEdit = isset($subadmin); $loginType = old('login_type', $isEdit ? $subadmin->login_type : 'custom'); $locationType = old('location_type', $subadmin->location_type ?? 'all'); @endphp