'boolean', 'accident_free' => 'boolean', 'price_negotiable' => 'boolean', 'photos_gallery' => 'array', 'options' => 'array', ]; // Акцессор: возвращает читаемую русскую метку статуса для шаблонов ($car->status_label) public function getStatusLabelAttribute(): string { return match ($this->status) { 'active' => 'Активен', 'sold' => 'Продан', 'draft' => 'Черновик', default => $this->status, }; } // Акцессор: возвращает "Новый" или "Б/У" ($car->condition_label) public function getConditionLabelAttribute(): string { return $this->condition === 'new' ? 'Новый' : 'Б/У'; } }