<?php 
session_start();
        
if(!isset($_SESSION['admin_login'])) 
    header('location:adminlogin.php');
?>
 <?php include 'admin_header.php' ?>
<?php include 'admin_navbar.php'?>

<div class="content-wrapper">
  <div class="content">
<div class="error-wrapper rounded border bg-white ">
              <div class="row justify-content-center">
                <div class="col-xl-4 text-center">
                  <h1 class="text-success bold ">Account Registeration</h1>
                  <p class="pt-4 pb-5 error-subtitle text-center">Fill all Information accordingly. All are required</p>

 <div class="card-body">    
<form action="add_customer.php" method="POST">
           
           
                    
                        <div class="form-row">
                          <div class="col-md-12 mb-3">
                            <label for="validationServer01">Customer's Name</label>
                            <input type="text"name="customer_name" class="form-control" id="validationServer01" placeholder="First name" value="" required>
                            <div class="valid-feedback">
                              Looks good!
                            </div>
                          </div>

                          
                      <div class="col-md-12 mb-3">
                            <label for="validationServer01">Gender</label><br>
                          <label class="control control-radio radio-success text-left">Male
                          <input type="radio" name="customer_gender" value="M" checked/>
                          <div class="control-indicator"></div>
                        </label>
                        <label class="control control-radio radio-success text-left">Female
                          <input type="radio" name="customer_gender" value="F" />
                          <div class="control-indicator"></div>
                        </label>
                         </div>    


                     <div class="col-md-12 mb-3">
                            <label for="validationServer01">DOB</label>
                        <input type="date" name="customer_dob" class="form-control" required>
                    </div>


                    <div class="col-md-12 mb-3">
                            <label for="validationServer01">Next of Kin</label>
                    <input type="text" name="customer_nominee"class="form-control" required>
                  </div>


                  <div class="col-md-12 mb-3">
                            <label for="validationServer01">State</label>
                            <input type="text" name="branch"class="form-control" required>
                        
</div>

                          <div class="col-md-12 mb-3">
                            <label for="validationServer01">Account type</label>
                  
                        <select class="form-control" name="customer_account">
                            <option>Savings</option>
                            <option>Current</option>
                            <option>Security Deposit</option>
                            
                        </select>
                  </div>


<div class="col-md-12 mb-3">
                            <label for="validationServer01">Opening Amount</label>
                   <input type="text" class="form-control" name="initial" value="1000" min="1000" required=""/>
</div>

  <div class="col-md-12 mb-3">
                            <label for="validationServer01">Address</label>
                    <textarea name="customer_address" class="form-control" required=""></textarea>
                <div class="col-md-12 mb-3">
                  </div>

                            <label for="validationServer01">Mobile</label>
                   <input type="text" class="form-control" name="customer_mobile" required=""/>
                
</div>

               
                     <div class="col-md-12 mb-3">
                            <label for="validationServer01">Email</label>
                    <input type="email" class="form-control" name="customer_email" required=""/>
                    </div>

               <div class="col-md-12 mb-3">
                            <label for="validationServer01">Password</label>
              <input type="password" class="form-control" name="customer_pwd" required=""/>
                </div>
                <div class="col-md-12 mb-3">
                            <label for="validationServer01">Pin</label>
              <input type="text" class="form-control" name="customer_pin" required=""/>
                </div>

                <div class="col-md-12 mb-3">
                            <label for="validationServer01">Account Status</label>
               
                        <select class="form-control" name="account_status">
                            <option>Active</option>
                            <option>Dormant</option>
                            <option>Pending</option>
                            
                        </select>
</div>

          </div>
<button class="btn btn-success btn-block" type="submit" name="add_customer" >Add Customer</button>





        </form>

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

      

          </div>
        </div>

 <?php include 'footer.php'?>