<div class="card">
    <div class="card-body">

        <form id="company_admin_user_registration" method="POST" class="form-horizontal" action="<?= base_url('s_registration') ?>" >
            <div class="panel panel-info">
                <div class="panel-body">
                    <div class="form-group">
                        <div class="col-sm-12">
                            <h4 class="text-left">Admin user registration</h4>
                        </div>
                    </div>
                    <hr>

                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">Company&nbsp;Name</span>
                        </div>
                        <input name="company_name" id="company_name" type="text" class="form-control" placeholder="Enter company/organization name">
                    </div>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">First&nbsp;Name</span>
                        </div>
                        <input name="admin_user_name_first" id="admin_user_name_first" type="text" class="form-control" placeholder="Enter full name">
                    </div>
                      <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">Last&nbsp;Name</span>
                        </div>
                        <input name="admin_user_name_last" id="admin_user_name_last" type="text" class="form-control" placeholder="Enter full name">
                    </div>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">User&nbsp;Id</span>
                        </div>
                        <input name="admin_login_id" id="admin_login_id" type="text" class="form-control" placeholder="Choose/Enter login id">



                    </div>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">Email</span>
                        </div>
                        <input name="email_admin" id="email_admin" type="email" class="form-control" placeholder="Choose/Enter login id">



                    </div>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">Password</span>
                        </div>
                        <input name="password" id="password" type="password" class="form-control" placeholder="Enter password">
                    </div>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">Confirm&nbsp;Password</span>
                        </div>
                        <input name="password_confirm" id="password_confirm" type="password" type="text" class="form-control" placeholder="Confirm password.">
                    </div>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">Mobile</span>
                        </div>
                        <input name="mobile_number" id="mobile_number" type="number" class="form-control" placeholder="Enter mobile number">
                    </div>


                    <div class="input-group date date_of_birth_foramtting mb-3" data-provide="datepicker">

                        <div class="input-group-prepend">
                            <span class="input-group-text">DOB</span>
                        </div>
                        <input type="text" class="form-control" name="date_of_birth" id="date_of_birth">
                        <div class="input-group-addon">

                        </div>

                    </div>

                    <hr>
                    <div class="form-group">

                        <button type="submit" class="btn btn-info">Submit</button>

                    </div>
                </div>

            </div>
        </form>
    </div>

    <div class="col-md-offset-2 col-md-12">
        <a href="<?= base_url('login') ?>" class="btn btn-outline-info btn-block" role="button" aria-pressed="true">Login</a>

    </div>


</div>
<script type="text/javascript">
    $(document).ready(function () {
        $('.date_of_birth_foramtting').datepicker({
            format: 'dd-mm-yyyy',
            autoclose: true
        });
        $('#company_admin_user_registration').bootstrapValidator({
            feedbackIcons: {
            },
            fields: {
                password: {
                    validators: {
                        notEmpty: {
                            message: 'Enter the user password.'
                        }
                    }
                },
                userId: {
                    validators: {
                        notEmpty: {
                            message: 'Enter user login id.'
                        }
                    }
                }
            }
        });

    });
</script>