<?php

namespace App\Models;

use App\Traits\HasLocalizedAttributes;
use Illuminate\Database\Eloquent\Model;

class Contact extends Model
{
    use HasLocalizedAttributes;
    protected $fillable = [
        'address_en',
        'address_ar',
        'phone',
        'email',
        'maps',
        'social_links',
        'phones',
    ];

    protected $casts = [
        'social_links' => 'array', // Cast JSON to array
        'phones' => 'array',
    ];

    protected $localizable = ['address', 'description'];

}
