<?php

namespace AleshaCMS\Models\CMS;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class SliderSlide extends Model
{
    protected $fillable = [
        'slider_id', 'title', 'subtitle', 'image_url',
        'button_text', 'button_url', 'button_target',
        'sort_order', 'is_active',
    ];

    protected $casts = ['is_active' => 'boolean'];

    public function slider(): BelongsTo
    {
        return $this->belongsTo(Slider::class);
    }
}
