admin/controllers/Dashboard.php
public function index()
    {
        //  Page Data
        $this->data['page']->title = 'Welcome';

        // --------------------------------------------------------------------------

        //  Choose a hello phrase
        $phrases   = array();
        $phrases[] = 'Be awesome.';
        $phrases[] = 'You look nice!';
        $phrases[] = 'What are we doing today?';

        if (activeUser('first_name')) {

            $phrases[] = 'Today is gonna be a good day, ' . activeUser('first_name') . '.';
            $phrases[] = 'Hey, ' . activeUser('first_name') . '!';

        } else {

            $phrases[] = 'Today is gonna be a good day.';
            $phrases[] = 'Hey!';
        }

        $this->data['phrase'] = random_element($phrases);

        // --------------------------------------------------------------------------

        //  Assets
        $oAsset = Factory::service('Asset');
        $oAsset->load('nails.admin.dashboard.min.js', true);

        // --------------------------------------------------------------------------

        //  Load views
        Helper::loadView('index');
    }
public function index()
    {
        //  Page Data
        $this->data['page']->title = 'Welcome';

        // --------------------------------------------------------------------------

        //  Choose a hello phrase
        $phrases   = array();
        $phrases[] = 'Be awesome.';
        $phrases[] = 'You look nice!';
        $phrases[] = 'What are we doing today?';

        if (activeUser('first_name')) {

            $phrases[] = 'Today is gonna be a good day, ' . activeUser('first_name') . '.';
            $phrases[] = 'Hey, ' . activeUser('first_name') . '!';

        } else {

            $phrases[] = 'Today is gonna be a good day.';
            $phrases[] = 'Hey!';
        }

        $this->data['phrase'] = random_element($phrases);

        // --------------------------------------------------------------------------

        //  Assets
        $oAsset = Factory::service('Asset');
        $oAsset->load('nails.admin.dashboard.min.js', true);

        // --------------------------------------------------------------------------

        //  Load views
        Helper::loadView('index');
    }
The admin homepage/dashboard
@return void