<?php

namespace App\Models;

use App\Models\Concerns\HasTranslations;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Service extends Model
{
    use HasFactory;
    use HasTranslations;

    protected $fillable = [
        'title',
        'excerpt',
        'bullets',
        'icon',
        'image_path',
        'sort_order',
        'is_active',
    ];

    protected function casts(): array
    {
        return [
            'title' => 'array',
            'excerpt' => 'array',
            'bullets' => 'array',
            'image_path' => 'string',
            'is_active' => 'boolean',
        ];
    }
}