<?php

namespace App\Models;

use Spatie\Activitylog\LogOptions;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class Footer extends Model
{
    use HasFactory;
    use SoftDeletes;
    use LogsActivity;
    protected $dates = ['deleted_at'];
    protected $fillable = [
        'footer_tiittle',
        'footer_address',
        'footer_mail_id',
        'footer_phone_num',
        'footer_tele_num',
        'pages',
        'social_status',
        'social_link_1',
        'social_heading_1',
        'social_link_2',
        'social_heading_2',
        'social_link_3',
        'social_heading_3',
        'social_link_4',
        'social_heading_4',

        'term_of_service',
        'term_of_service_link',
        'term_of_service_status',
        'privacy_policy',
        'privacy_policy_link',
        'privacy_policy_status',
        'copyright',
        'copyright_status',
        
        
      
    ];
    protected $casts = [
        'pages' => 'array',
    ];
    public function getActivitylogOptions(): LogOptions
    {
        return LogOptions::defaults()
        ->logAll();
    }
}
