<?php

/**
 * This file is part of Aksara CMS, both framework and publishing
 * platform.
 *
 * @author     Aby Dahana <abydahana@gmail.com>
 * @copyright  (c) Aksara Laboratory <https://aksaracms.com>
 * @license    MIT License
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the LICENSE.txt file.
 *
 * When the signs is coming, those who don't believe at "that time"
 * have only two choices, commit suicide or become brutal.
 */

namespace Aksara\Modules\Peoples\Controllers;

class Peoples extends \Aksara\Laboratory\Core
{
    private $_table = 'peoples';

    public function __construct()
    {
        parent::__construct();

        $this->searchable(false);
        $this->limit(12);
    }

    public function index()
    {
        $this->set_title(phrase('The Peoples Behind Us'))
        ->set_description(phrase('Meet the peoples behind us'))
        ->set_icon('mdi mdi-account-group-outline')
        ->where('status', 1)

        ->render($this->_table);
    }
}
