<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AppSetting extends Model
{
    protected $fillable = [
        'app_name',
        'app_email',
        'app_description',
        'app_about',
        'app_icon',
        'app_logo',
        'driver_subscription_type',
        'driver_subscription_value',
        'driver_subscription_enabled',
        'restaurant_subscription_type',
        'restaurant_subscription_value',
        'restaurant_subscription_enabled',
        'gas_subscription_type',
        'gas_subscription_value',
        'gas_subscription_enabled',
        'wallet_zain_cash_phone',
        'wallet_topup_instructions',
        'wallet_mastercard_instructions',
        'wallet_aman_card_enabled',
        'wallet_aman_card_instructions',
        'cashback_enabled',
        'cashback_base_percent',
        'cashback_level_1_trips',
        'cashback_level_1_percent',
        'cashback_level_2_trips',
        'cashback_level_2_percent',
        'cashback_level_3_trips',
        'cashback_level_3_percent',
        'cashback_rating_threshold',
        'cashback_rating_bonus_percent',
        'cashback_continuity_days',
        'cashback_continuity_bonus_percent',
        'cashback_lock_days',
        'cashback_early_transfer_penalty_percent',
        'cashback_referral_percent',
        'cashback_referral_months',
        'passenger_service_taxi_enabled',
        'passenger_service_food_enabled',
        'passenger_service_gas_enabled',
        'services_banner_enabled',
        'services_banner_title',
        'services_banner_subtitle',
        'services_banner_body',
        'services_banner_cta_label',
        'global_completed_orders_count',
        'wheel_milestone_interval',
        'wheel_winning_segment',
        'referral_withdraw_min_invitees',
        'referral_withdraw_min_orders_per_invitee',
    ];

    protected $casts = [
        'driver_subscription_enabled' => 'boolean',
        'restaurant_subscription_enabled' => 'boolean',
        'gas_subscription_enabled' => 'boolean',
        'passenger_service_taxi_enabled' => 'boolean',
        'passenger_service_food_enabled' => 'boolean',
        'passenger_service_gas_enabled' => 'boolean',
        'services_banner_enabled' => 'boolean',
        'wallet_aman_card_enabled' => 'boolean',
        'driver_subscription_value' => 'decimal:2',
        'restaurant_subscription_value' => 'decimal:2',
        'gas_subscription_value' => 'decimal:2',
    ];
}
