/**
 *
 */
angular.module("myApp", ["ui.router"]).config(function ($stateProvider, $urlRouterProvider, $locationProvider) {

    $locationProvider.hashPrefix('');
    //trở về trang mặc định
    $urlRouterProvider.otherwise("/employees");

    $stateProvider

        .state("layout1", {
            abstract: true,
            views: {
                "layout": {
                    templateUrl: "layout/layout1.html"
                }
            }
        })

        .state("layout2", {
            abstract: true,
            views: {
                "layout": {
                    templateUrl: "layout/layout2.html"
                }
            }
        })
        .state("layout3", {
            abstract: true,
            views: {
                "layout": {
                    templateUrl: "layout/layout3.html"
                }
            }
        })


        .state("employees", {
            parent: 'layout3',
            url: "/employees",
            views: {
                "content": {
                    templateUrl: "pages/employee/employee.html",
                    controller: "employeeController"
                }
            }
        })
        .state("project", {
            parent: 'layout3',
            url: "/project",
            views: {
                "content": {
                    templateUrl: "pages/project/project/projectListViews.html",
                    controller: "projectController"
                }
            }
        })
        .state("report", {
            parent: 'layout3',
            url: "/report",
            views: {
                "content": {
                    templateUrl: "pages/report/report.html",
                    controller: "reportController"
                }
            }
        })

        .state("timeSheet", {
            parent: 'layout3',
            url: "/timeSheet",
            views: {
                "content": {
                    templateUrl: "pages/report/detailReport.html",
                    controller: "timeSheetReportController"
                }
            }
        })


});
