define(['quote/quote'], function (quote) {
quote.controller('Onboarding', ['$scope', '$http', function ($scope, $http) {
$scope.SetStepHeader('
You\'re now a customer of Auto & General
');
$scope.GoToDashboard = function () {
window.location = "/dashboard";
};
$scope.GoTonotifications = function () {
window.location = "/dashboard";
};
$scope.GoTodetails = function () {
window.location = "/dashboard/" + $scope.Quote.PolicyNumberDisplay + "#/profile/account";
};
//Loop through persons to get the Policyholder's name
for (var i = 0; i < $scope.Quote.Persons.length; i++){
if ($scope.Quote.Persons[i].IsPolicyHolder == true) {
$scope.PolicyHolderName = $scope.Quote.Persons[i].FirstName;
break;
}
}
}]);
});