<?php $__env->startSection('title', 'Create Invoice'); ?>

<?php $__env->startPush('css'); ?>
    <link rel="stylesheet" href="<?php echo e(asset('backend/plugins/select2.min.css')); ?>">
	<link rel="stylesheet" href="<?php echo e(asset('myfile/backend/assets/datepicker/zebra_datepicker.min.css')); ?>" type="text/css">
	<link rel="stylesheet" href="<?php echo e(asset('myfile/backend/assets/datepicker/examples.css')); ?>" type="text/css">
<?php $__env->stopPush(); ?>

<!-- page content -->
<?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 id="msg"></div>
                </div>
            <?php endif; ?>
            <?php if(Session::has('error')): ?>
                <div class="alert alert-danger">
                    <?php echo e(Session::get('error')); ?>

                </div>
            <?php endif; ?>
            <div class="resp"></div>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2> Create Invoice</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">
                            <form action="<?php echo e(route('sales.create')); ?>" method="Get" class="form-" role="form" autocomplete="off" >
                                <hr/>
                                <div class="row">
                                    <div class="col-sm-3"></div>
                                    <div class="col-sm-3">
                                        <div class="form-group ">
                                            <label>Select Type <span class="required">*</span></label>
                                            <select class="form-control select2" name="type" id="type_id" required >
                                                <option value="">- Select Type -</option>
                                                <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($type->id); ?>" <?php echo e($type->description == 'Default' ? 'selected' : ''); ?> > <?php echo e($type->name); ?> </option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div> 
                                          
                                    </div>
                                    <div class="col-sm-3">
                                        <div class="form-group">
                                            <label>Select Date <span class="required">*</span></label>
                                            <input id="datepicker" type="text" name="sale_date"  class="form-control" data-zdp_readonly_element="true" value="<?php echo e(date('d-m-Y')); ?>" placeholder="dd-mm-yyyy">
                                        </div>  
                                    </div>
                                    <div class="col-sm-3"></div>
                                </div>
                                
                                <hr>
                                <div class="form-group">
                                    <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-5">
                                      <a href="javascript:history.back()" class="btn btn-warning"><i class="ace-icon fa fa-arrow-left"></i> Back</a>
                                      <button type="submit" class="btn btn-success"> <i class="ace-icon fa fa-arrow-right"></i> Create Invoice </button>
                                    </div>
                                </div>
                                <br><br>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /page content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
    <script src="<?php echo e(asset('backend/plugins/select2.min.js')); ?>"></script>
    <!-- Jquery Plugin For Date Calender-->
    <script type="text/javascript" src="<?php echo e(asset('myfile/backend/assets/datepicker/zebra_datepicker.src.js')); ?>"></script>
    <script>
        $(document).ready(function () {
            $('#datepicker').Zebra_DatePicker({
                format: 'd-m-Y',
                //direction: 1,
            });
            
            $(".select2").select2();
        });
    </script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('backend.layouts..master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>