<?php $__env->startSection('title','Customer Entry'); ?>

<?php $__env->startPush('css'); ?>

<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
    <div class="right_col" role="main">
        <div class="">
            <div class="clearfix"></div>
            <?php if(Session::has('success')): ?>
                <div class="alert alert-success">
                    <?php echo e(Session::get('success')); ?>

                </div>
            <?php endif; ?>
            <?php if(Session::has('error')): ?>
                <div class="alert alert-danger">
                    <?php echo e(Session::get('error')); ?>

                </div>
            <?php endif; ?>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2>Entry Customer
                                 <a href="<?php echo e(route('customer.list')); ?>" class="btn btn-xs btn-primary">View Customer</a>
                            </h2>
                            <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                       aria-expanded="false"><i class="fa fa-wrench"></i></a>
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="#">Settings 1</a>
                                        </li>
                                        <li><a href="#">Settings 2</a>
                                        </li>
                                    </ul>
                                </li>
                                <li><a class="close-link"><i class="fa fa-close"></i></a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
                           <div class="row">
                               <div class="col-sm-3"></div>
                               <div class="col-sm-6">
                                    <form action="<?php echo e(route('customer.store')); ?>" method="post">
                                        <?php echo e(csrf_field()); ?>

                                        <div class="form-group">
                                            <label for="party_name">Customer Name</label>
                                            <input type="text" class="form-control" id="customer_name" name="customer_name" value="<?php echo e(old('customer_name')); ?>" placeholder="Enter Customer Name">
                                            <span class="error"><b><?php echo e($errors->first('customer_name')); ?></b></span>
                                        </div>
                                         <div class="form-group">
                                            <label for="party_name">Customer Phone</label>
                                            <input type="text" class="form-control" id="customer_phone" name="customer_phone" value="<?php echo e(old('customer_phone')); ?>" placeholder="Enter Customer Phone">
                                            <span class="error"><b><?php echo e($errors->first('customer_phone')); ?></b></span>
                                        </div>
                                         <div class="form-group">
                                            <label for="party_name">Customer Email</label>
                                            <input type="text" class="form-control" id="customer_email" name="customer_email" value="<?php echo e(old('customer_email')); ?>" placeholder="Enter Customer Email">
                                            <span class="error"><b><?php echo e($errors->first('customer_email')); ?></b></span>
                                        </div>
                                        <div class="form-group">
                                            <label for="party_name">Customer Address</label>
                                            <input type="text" class="form-control" id="customer_address" name="customer_address" value="<?php echo e(old('customer_address')); ?>" placeholder="Enter Customer Address">
                                            <span class="error"><b><?php echo e($errors->first('customer_address')); ?></b></span>
                                        </div>
                                        <div class="form-group">
                                            <label for="due_amount">Previous Due</label>
                                            <input type="number" class="form-control" id="due_amount" name="due_amount" value="<?php echo e(old('due_amount')); ?>" placeholder="Enter Customer Previous Due AMount ****">
                                            <span class="error"><b><?php echo e($errors->first('due_amount')); ?></b></span>
                                        </div>
                                        <!-- /.box-body -->
                                        <div class="box-footer">
                                            <button type="submit" name="btnSave" class="btn btn-primary btn-block" >Customer Enty Save</button>
                                        </div>
                                    </form>
                               </div>
                               <div class="col-sm-3"></div>
                           </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>

<?php $__env->stopPush(); ?>
<?php echo $__env->make('backend.layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>