<div class="content-wrapper">
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="text-primary">
                        <go-back/>
                        <i class="fas fa-user-secret"></i> {{createButton.heading}}
                    </h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a ng-href="{{baseurl}}/dashboard">Home</a></li>
                        <li class="breadcrumb-item"><a ng-href="{{baseurl}}/accounts/list">Account</a></li>
                        <li class="breadcrumb-item active">Add</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-sm-12 col-md-6">
                <div class="card card-primary card-outline">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="form-group">
                                    <label for="acc_company_name">Name</label>
                                    <input type="text" id="acc_company_name" class="form-control" ng-model="account.acc_company_name" placeholder="Company Name">
                                </div>
                                <div class="form-group">
                                    <label for="proj_status">Status</label>
                                    <select id="proj_status" class="form-control custom-select"
                                            ng-model="account.acc_status" ng-options="ps.value as ps.label for ps in gstatus">
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="rc">Revenue Center</label>
                                    <select id="rc" class="form-control custom-select"
                                            ng-model="account.acc_revenue_center" ng-options="rc.revenuecenterid as rc.rc_name for rc in revenueCenters">
                                    </select>
                                </div>
                            </div>
                            <div class="col-sm-12 col-lg-6" ng-if="false">
                                <div class="form-group">
                                    <label for="acc_first_name">First Name</label>
                                    <input type="text" id="acc_first_name" class="form-control" ng-model="account.acc_first_name" placeholder="First Name">
                                </div>
                                <div class="form-group">
                                    <label for="acc_last_name">Last Name</label>
                                    <input type="text" id="acc_last_name" class="form-control" ng-model="account.acc_last_name" placeholder="Last Name">
                                </div>
                                <div class="form-group">
                                    <label for="acc_primany_contact">Primany Contact</label>
                                    <input type="tel" id="acc_primany_contact" class="form-control" maxlength="17" ng-model="account.acc_primany_contact" pattern="^[0-9()+ -]*$" placeholder="Primany Contact / Mobile No.">
                                </div>
                                <div class="form-group">
                                    <label for="acc_email">Email</label>
                                    <input type="email" id="acc_email" class="form-control" ng-model="account.acc_email" placeholder="Email">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer">
                        <div class="col-12">
                            <button type="button" class="btn btn-secondary btn-xs" data-toggle="modal" data-target="#modal-default">Cancel</button>
                            <button type="submit" ng-click="createAccount()" class="btn btn-success float-right">
                                <i class="fas {{createButton.icon}}"></i> {{createButton.text}}
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <div class="modal fade" id="modal-default">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <p>Are you sure to leave this page!</p>
                </div>
                <div class="modal-footer justify-content-between">
                    <button type="button" class="btn btn-default btn-xs" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary btn-xs" data-dismiss="modal" ng-click="goTo($event,'accountList')">Proceed</button>
                </div>
            </div>
        </div>
    </div>
</div>
