/**
 * @author monitour
 * created on 27.07.2017
 */
(function() {
    'use strict';

    angular.module('Monitour.pages.billing', [])
        .config(routeConfig);

    /** @ngInject */
    function routeConfig($stateProvider) {
        $stateProvider
            .state('main.billing', {
                url: '/billing',
                templateUrl: 'app/pages/billing/billing.html',
                title: 'Billing',
                abstract: true,
                sidebarMeta: {
                    icon: 'ion-gear-a',
                    order: 100,
                },
                authenticate: true
            })
            .state('main.billing.list', {
                url: '/list',
                templateUrl: 'app/pages/billing/list/list.html',
                title: 'My Bills',
                controller: 'billListCtrl',
                controllerAs: 'vm',
                sidebarMeta: {
                    icon: 'ion-stats-bars',
                    order: 150,
                },
                authenticate: true
            })
            .state('main.billing.payments', {
                url: '/payments',
                templateUrl: 'app/pages/billing/payments/list.html',
                title: 'Payment History',
                controller: 'paymentsCtrl',
                controllerAs: 'vm',
                sidebarMeta: {
                    icon: 'ion-stats-bars',
                    order: 150,
                },
                authenticate: true
            })
            .state('main.billing.view', {
                url: '/view/:id',
                title: 'View billing',
                controller: 'viewBillCtrl',
                controllerAs: 'vm',
                templateUrl: 'app/pages/billing/view/view.html',
                authenticate: true
            })
		    .state('main.billing.make', {
                url: '/make-payment',
                templateUrl: 'app/pages/billing/make/make.html',
                title: 'Make a Payment',
                controller: 'makeBillCtrl',
                controllerAs: 'vm',
                sidebarMeta: {
                    icon: 'ion-stats-bars',
                    order: 150,
                },
                authenticate: true
            })
            .state('main.billing.plans', {
                url: '/plans',
                templateUrl: 'app/pages/billing/plans/plans.html',
                title: 'Plans',
                controller: 'plansCtrl',
                controllerAs: 'vm',
                sidebarMeta: {
                    icon: 'ion-stats-bars',
                    order: 150,
                },
                authenticate: true
            })
		   .state('main.billing.purchase', {
                url: '/purchase/:id',
                title: 'Purchase',
                controller: 'purchaseCtrl',
                controllerAs: 'vm',
                templateUrl: 'app/pages/billing/purchase/purchase.html',
                authenticate: true
            });



    }

})();