
<?php $__env->startSection('content'); ?>
    <div class="az-content-breadcrumb">
        <span>Discounts</span>
        <span>Add Discount</span>
        
        
    </div>
    <h2 class="az-content-title" style="display: inline">Add New Discounts <span><a href="<?php echo e(url('discounts')); ?>"
                class="btn btn-az-primary" style="float: right">Discounts List</a></span></h2>
    


    
    <div class="row">
        <div class="col-md-12 col-lg-12 col-xl-12">
            <div class="card card-body pd-40">
                <h5 class="card-title mg-b-20">Add Discounts</h5>
                <form method="post" action="<?php echo e(url('discounts/store')); ?>">
                    <?php echo csrf_field(); ?>
                    <?php if(count($errors) > 0): ?>
                        <div class="p-1">
                            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="alert alert-warning alert-danger fade show" role="alert"><?php echo e($error); ?>

                                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                        <span aria-hidden="true">&times;</span>
                                    </button>
                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                        <?php endif; ?>

                        <div class="row row-sm mg-b-20">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="az-content-label tx-11 tx-medium tx-gray-600">Discounts Name</label>
                                    <input type="text" name="discount_name" class="form-control" required />
                                </div>
                            </div>



                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="az-content-label tx-11 tx-medium tx-gray-600">Discounts Type</label>
                                    <input type="text" name="discount_type" class="form-control" required />
                                </div>
                            </div>

                        </div>
                        <div class="row row-sm mg-b-20">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="az-content-label tx-11 tx-medium tx-gray-600">Discount For</label>
                                    <input type="text" name="discount_for" class="form-control" required />
                                </div>
                            </div>



                            <div class="col-md-6">
                                <div class="form-group">
                                    <label class="az-content-label tx-11 tx-medium tx-gray-600">Discount</label>
                                    <input type="text" name="discount_price" class="form-control" required />
                                </div>
                            </div>

                        </div>
                        

                    <a type="button" href="<?php echo e(url('/discounts')); ?>" class="btn btn-danger btn-block mt-2">
                        Cancel
                    </a>
                    <button type="submit" class="btn btn-az-primary btn-block mt-2" style="float: right">
                        Submit
                    </button>
                </form>
            </div>
            <!-- card -->
        </div>
        <!-- col -->
    </div>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\mds-scm\resources\views/discounts/create.blade.php ENDPATH**/ ?>