
<div class="row align-items-center">
    <div class="col-sm-6">
        <div class="page-title-box">
            <h4 class="font-size-18">Setting Master</h4>
            <ol class="breadcrumb mb-0">
                <li class="breadcrumb-item"><a href="javascript: void(0);">Setting</a></li>
                <li class="breadcrumb-item active">Add</li>
            </ol>
        </div>
    </div>

    <div class="col-sm-6">
        <div class="float-right d-none d-md-block">           
                <a class="btn btn-primary waves-effect waves-light" href="<?php echo base_url(); ?>settings/company_settings/">
                    <i class="mdi mdi-plus mr-2"></i> View Companies
                </a>
        </div>
    </div>
</div>

<?php
if($this->session->flashdata('alert_success'))
{
?>
<div class="alert alert-success alert-dismissible fade show" role="alert">
    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
        <span aria-hidden="true">×</span>
    </button>
    <strong>Success!</strong> <?php echo $this->session->flashdata('alert_success'); ?>
</div>
<?php
}

if($this->session->flashdata('alert_danger'))
{
?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
        <span aria-hidden="true">×</span>
    </button>
    <strong>Success!</strong> <?php echo $this->session->flashdata('alert_danger'); ?>
</div>
<?php
}

if($this->session->flashdata('alert_warning'))
{
?>
<div class="alert alert-warning alert-dismissible fade show" role="alert">
    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
        <span aria-hidden="true">×</span>
    </button>
    <strong>Success!</strong> <?php echo $this->session->flashdata('alert_warning'); ?>
</div>
<?php
}
if(validation_errors())
{
    ?>
    <div class="alert alert-danger alert-dismissible fade show" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">×</span>
        </button>
        <?php echo validation_errors(); ?>
    </div>
    <?php
}
?>

<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-body">
                <h4 class="card-title">Create New Company</h4>

                <form  action="<?php echo base_url();?>settings/company_settings/add" method="post" enctype="multipart/form-data">
                    <div class="row">
                    <div class="col-lg-6">
                    <div class="form-group">
                        <label class="required">Company Name</label>
                        <input name="company_name" id="company_name" type="text" class="form-control"  placeholder="Enter company name" value="<?php echo (isset($_POST['company_name']))?$_POST['company_name']:''; ?>" autofocus>
                    </div>

                    <div class="form-group">
                        <label class="required">Brand Name</label>
                        <input name="company_short_name" id="company_short_name" type="text" class="form-control"  placeholder="Enter company short name"  value="<?php echo (isset($_POST['company_short_name']))?$_POST['company_short_name']:''; ?>">
                    </div>

                    

                    <div class="form-group">
                        <label class="required">Address Line 1</label>
                        <input name="company_address" id="company_address" type="text" class="form-control"  placeholder="Enter Address" value="<?php echo (isset($_POST['company_address']))?$_POST['company_address']:''; ?>">
                    </div>
                    <div class="form-group">
                        <label>Address Line 2</label>
                        <input name="company_address1" id="company_address" type="text" class="form-control"  placeholder="Enter Address" value="<?php echo (isset($_POST['company_address1']))?$_POST['company_address1']:''; ?>">
                    </div>
                    <div class="form-group">
                        <label class="required"></label>State</label>
                        <input name="state" id="company_address" type="text" class="form-control"  placeholder="Enter State" value="<?php echo (isset($_POST['state']))?$_POST['state']:''; ?>">
                    </div>
                    <div class="form-group">
                        <label class="required">City</label>
                        <input name="city" id="city" type="text" class="form-control"  placeholder="Enter City" value="<?php echo (isset($_POST['city']))?$_POST['city']:''; ?>">
                    </div>
                     <div class="form-group">
                        <label class="required">Pincode</label>
                        <input name="pincode" id="city" type="text" class="form-control"  placeholder="Enter Pincode" value="<?php echo (isset($_POST['pincode']))?$_POST['pincode']:''; ?>">
                    </div>
                    
                    
                    </div>
                    <div class="col-lg-6">
                        <div class="form-group">
                        <label class="required">Phone Number</label>
                        <input name="company_phone_number" id="company_phone_number" type="text" class="form-control"  placeholder="Enter phone number" value="<?php echo (isset($_POST['company_phone_number']))?$_POST['company_phone_number']:''; ?>">
                    </div>
                    <div class="form-group">
                        <label class="required">What's App Number</label>
                        <input name="whats_app_number" id="whats_app_number" type="text" class="form-control"  placeholder="Enter phone number" value="<?php echo (isset($_POST['whats_app_number']))?$_POST['whats_app_number']:''; ?>">
                    </div>
                    <div class="form-group">
                        <div class="form-group">
                        <label class="required">Email Address</label>
                        <input name="company_email" id="company_email" type="email" class="form-control"  placeholder="Enter Email Address"  value="<?php echo (isset($_POST['company_email']))?$_POST['company_email']:''; ?>">
                    </div>
                    <div class="form-group">
                        <div class="form-group">
                        <label class="required">Corban Copy(Cc)</label>
                        <input name="company_email" id="email_cc" type="email_cc" class="form-control"  placeholder="Enter Cc Email Address"  value="<?php echo (isset($_POST['company_email']))?$_POST['email_cc']:''; ?>">
                    </div>
                        <label class="required">PAN Number</label>
                        <input name="company_pan" id="company_pan" type="text" class="form-control"  placeholder="Enter PAN number" value="<?php echo (isset($_POST['company_pan']))?$_POST['company_pan']:''; ?>">
                    </div>

                    <div class="form-group">
                        <label class="required">GSTIN</label>
                        <input name="company_gstin" id="company_gstin" type="text" class="form-control"  placeholder="Enter GSTIN" value="<?php echo (isset($_POST['company_gstin']))?$_POST['company_gstin']:''; ?>">
                    </div>
                     <div class="form-group">
                        <label>Company Logo</label>
                        <input name="user_file" id="company_gstin" type="file" class="form-control"  placeholder="Enter Logo">
                    </div>
                     
                    <div class="form-group">
                        <label class="required">Po Number</label>
                        <input name="po_number" id="po_number" type="text" class="form-control"  placeholder="Enter GE/CHE/Year/" value="<?php echo (isset($_POST['po_number']))?$_POST['po_number']:''; ?>">
                    </div>
                     <div class="form-group">
                        <label class="required">Terms & Conditions</label>
                        <input name="terms_condition" id="terms_condition" type="textarea" class="form-control"  placeholder="Enter Terms and Conditions" value="<?php echo (isset($_POST['terms_condition']))?$_POST['terms_condition']:''; ?>">
                    </div>
                    
</div>
</div>
                    <div class="form-group mb-0">
                        <div>
                            <button name="submit" type="submit" class="btn btn-primary waves-effect waves-light mr-1">
                                Submit
                            </button>
                            <a href="<?php echo base_url(); ?>settings/company_settings" class="btn btn-secondary waves-effect">Cancel </a>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
</div>
<style type="text/css">
    .required:after {
    content: " *" !important;
    color: red !important;
}
</style>