<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class SiteSetting extends Model {
    protected $table = 'site_settings';
    protected $fillable = [
        'tenant_id','logo','favicon','footer_logo','site_name','tab_title',
        'address','phone','email','facebook','instagram','twitter','youtube',
        'hero_title','hero_subtitle','hero_image',
        'free_delivery_enabled','home_page_json','categories_json',
        'delivery_zones_json','marketing_coupons','custom_pages_json',
        'messenger_ai_webhook_slug','messenger_ai_openai_key','messenger_ai_fb_token',
        'messenger_ai_fb_verify_token','messenger_ai_description','messenger_ai_enabled',
        'fb_ads_access_token','fb_ads_account_id',
        'play_store_link','app_store_link','gtm_id'
    ];
    protected $casts = ['free_delivery_enabled'=>'boolean','messenger_ai_enabled'=>'boolean'];
    protected $hidden = ['messenger_ai_openai_key','fb_ads_access_token'];
    public function tenant() { return $this->belongsTo(Tenant::class); }
}
