<style>
    form{box-shadow:0 0 5px silver;padding:15px;}
</style>
<div class="container-fluid bg-white">
    <div class="row">
        <div class="col-sm-12 pt-3 pb-3">
            
            <ul class="breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Welcome">Home</a></li>
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Accounts">Accounts</a></li>
                <li class="breadcrumb-item">Add Account Head</li>
            </ul>
            <form method="post" action="#">
                <h1 class="main-heading text-center">Add Account Head</h1>
                <hr>
                <?php 
                if($success){
                ?>
                <div class="alert alert-success"><?php echo $success; ?></div>
                <?php
                }
                if($error){
                ?>
                <div class="alert alert-danger"><?php echo $error; ?></div>
                <?php
                }
                ?>
                <div class="form-group">
                    <label>Account Head</label>
                    <input type="text" name="account_head" class="form-control" placeholder="Account Head" required>
                </div>
                <div class="form-group">
                    <label>Head Type</label>
                    <select class="form-control" name="account_head_type" required>
                        <option value="Debit">Debit</option>
                        <option value="Debit">Credit</option>
                    </select>
                </div>
                
                <div class="form-group">
                    <button class="btn btn-sm btn-success" name="add_account_head">Submit</button>
                </div>
            </form>
        </div>
    </div>
</div>