
<?php $__env->startSection('content'); ?>
<!-- BEGIN: Content-->

<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="<?php echo e(asset('app-assets/vendors/js/pickers/flatpickr/flatpickr.min.js')); ?>"></script>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('app-assets/vendors/css/pickers/flatpickr/flatpickr.min.css')); ?>" />

<div class="app-content content ">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper container-xxl p-0">
        <div class="content-header row">
            <div class="content-header-left col-md-9 col-12 mb-2">
                <div class="row breadcrumbs-top">
                    <div class="col-12">
                        <h2 class="content-header-title float-start mb-0"><?php echo e(__('lang.admin_coupon')); ?></h2>
                        <div class="breadcrumb-wrapper">
                            <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo route('dashboard'); ?>"><?php echo e(__('lang.admin_menu_dashboard')); ?></a>
                                </li>
                                <li class="breadcrumb-item active"><?php echo e(__('lang.admin_coupon_list')); ?>

                                </li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
            <div class="content-header-right text-md-end col-md-3 col-12 d-md-block">
                <div class="mb-1 breadcrumb-right">
                    <button class="btn btn-icon btn-primary" type="button" data-bs-toggle="modal" data-bs-target="#modals-slide-in">
                        <i data-feather="plus" class="me-25"></i>
                        <span><?php echo e(__('lang.admin_coupon_add')); ?></span>
                    </button>
                </div>
            </div>
        </div>
        <?php echo $__env->make('coupons.table', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>
</div>
<!-- Modal to add new record -->
<div class="modal modal-slide-in fade" id="modals-slide-in">
    <div class="modal-dialog sidebar-sm">
        <form class="add-new-record modal-content pt-0" action="<?php echo route('coupons.store'); ?>" enctype="multipart/form-data" method="post">
            <?php echo csrf_field(); ?>
            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">×</button>
            <div class="modal-header mb-1">
                <h5 class="modal-title" id="exampleModalLabel"><?php echo e(__('lang.admin_coupon_new')); ?></h5>
            </div>
            <div class="modal-body flex-grow-1">
                
                <div class="mb-1">
                    <label class="form-label" for="basic-icon-default-fullname">Coupon Book Number</label>
                    <input type="text" class="form-control dt-full-name" id="basic-icon-default-fullname" placeholder="Coupon Book Number" aria-label="<?php echo e(__('lang.admin_coupon_name')); ?>" name="coupon_book_number" required/>
                </div>
               
                <div class="mb-1">
                    <label class="form-label" for="basic-icon-default-discount_price">Start Number</label>
                    <input type="text" id="basic-icon-default-discount_price" class="form-control dt-discount_price" placeholder="Start Number" aria-label="<?php echo e(__('lang.admin_coupon_value')); ?>" name="start_number"  required/>
                </div>
                <div class="mb-1">
                    <label class="form-label" for="basic-icon-default-stock">Number of Coupons</label>
                    <input type="text" id="basic-icon-default-stock" class="form-control dt-post" placeholder="Number of Coupons" aria-label="<?php echo e(__('lang.admin_coupon_minvalue')); ?>" name="number_of_coupons"  required/>
                </div>
               
                <div class="mb-1">
                    <label class="form-label" for="status"><?php echo e(__('lang.admin_status')); ?></label>
                    <select class="form-select" id="status" name="status" required>
                        <option value="1"><?php echo e(__('lang.admin_active')); ?></option>
                        <option active value="0"><?php echo e(__('lang.admin_deactive')); ?></option>
                    </select>
                </div>
                <button type="submit" class="btn btn-primary data-submit me-1"><?php echo e(__('lang.admin_button_submit')); ?></button>
                <button type="reset" class="btn btn-outline-secondary" data-bs-dismiss="modal"><?php echo e(__('lang.admin_button_cancel')); ?></button>
            </div>
        </form>
    </div>
</div>

<!-- END: Content-->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/hayawater/resources/views/coupons/index.blade.php ENDPATH**/ ?>