<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Hero_model — homepage hero carousel slides.
 */
#[\AllowDynamicProperties]
class Hero_model extends MY_Model {

	protected $table = 'hero_slides';
	protected $order_by = 'sort_order ASC, id ASC';

	/** Active slides for the public hero carousel. */
	public function active()
	{
		return $this->get_all(array('is_active' => 1));
	}

	/** All slides for the admin list. */
	public function all_admin()
	{
		return $this->get_all();
	}
}
