<?php
namespace App\Modules\Goals\Controllers;

class GoalsController extends \Core\Controller {

    public function index() {
        $model = $this->model('Goals/Models/GoalsModel');
        $goals = $model->getAllGoals($this->userId);
        $score = $model->getOverallScore($this->userId);

        $this->view('Goals/Views/index', [
            'title'  => 'مركز الأهداف الموحد | OTIS',
            'goals'  => $goals,
            'score'  => $score,
        ]);
    }
}
