<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Setting extends Model
{
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'package_active',
        'product_active',
        'top_up_active',
        'blog_active',
        'currency',
        'en_website_name',
        'fa_website_name',
        'phone',
        'whatsapp_link',
        'facebook_link',
        'instagram_link',
        'twitter_link',
        'linkedin_link',
        'youtube_link',
        'tiktok_link',
        'sys_email',
        'en_address',
        'fa_address',
        'map_embed_link',
        'en_working_hours',
        'fa_working_hours',
    ];

    /**
     * Get the attributes that should be cast.
     *
     * @return array<string, string>
     */
    protected function casts(): array
    {
        return [
            'id' => 'integer',
            'package_active' => 'boolean',
            'product_active' => 'boolean',
            'top_up_active' => 'boolean',
            'blog_active' => 'boolean',
        ];
    }
}
