
<?php $__env->startSection('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')); ?>" />

<!-- BEGIN: Content-->
<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 <?php echo e(Request::is('admin/coupons*') ? 'active' : ''); ?>"><a href="<?php echo route('coupons.index'); ?>"><?php echo e(__('lang.admin_coupon_list')); ?></a>
                                </li>
                                <li class="breadcrumb-item active">Edit Coupon
                                </li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-body">
            <!-- users edit start -->
            <section class="app-user-edit">
                <div class="card">
                    <div class="card-body">
                        <div class="tab-content">
                            <!-- Account Tab starts -->
                            <div class="tab-pane active" id="account" aria-labelledby="account-tab" role="tabpanel">
                                <!-- users edit start -->
                                <?php $__currentLoopData = $coupon; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php echo Form::model($c, ['method' => 'PATCH','enctype'=>'multipart/form-data', 'route' => ['coupons.update', $c->id]]); ?>

                                <?php echo csrf_field(); ?>
                               
                                <!-- coupons edit ends -->
                                <!-- coupons edit form start -->
                                <div class="row">
                                    <div class="col-md-4">
                                        <div class="mb-1">
                                            <label class="form-label" for="username">Coupon Book Number</label>
                                            <input type="text" class="form-control" placeholder="<?php echo e(__('lang.admin_coupon_name')); ?>" value="<?php echo e($c->book_no); ?>" name="coupon_book_number" id="coupon_name"  required/>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="mb-1">
                                            <label class="form-label" for="name">Start Number</label>
                                            <input type="text" class="form-control" placeholder="<?php echo e(__('lang.admin_coupon_name')); ?>" value="<?php echo e($c->start_number); ?>" name="start_number" id="coupon_name"  required/>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="mb-1">
                                            <label class="form-label" for="email">Number of Coupons</label>
                                            <input type="text" class="form-control" placeholder="<?php echo e(__('lang.admin_coupon_value')); ?>" value="<?php echo e($c->no_coupons); ?>" name="number_of_coupons" id="email" required/>
                                        </div>
                                    </div>
                                    
                                    
                                    <div class="col-md-4">
                                        <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="active" <?php if($c->status == 'active'): ?> selected  <?php endif; ?>><?php echo e(__('lang.admin_active')); ?></option>
                                                <option value="inactive" <?php if($c->status == 'inactive'): ?> selected  <?php endif; ?>>Inactive</option>
                                            </select>
                                        </div>
                                    </div>
                                   
                                   
                                    
                                    <div class="col-12 d-flex flex-sm-row flex-column mt-2">
                                        <button type="submit" class="btn btn-primary mb-1 mb-sm-0 me-0 me-sm-1"><?php echo e(__('lang.admin_button_save_changes')); ?></button>
                                        <a href="<?php echo route('coupons.index'); ?>" class="btn btn-outline-secondary"><?php echo e(__('lang.admin_button_back')); ?></a>
                                    </div>
                                </div>
                                <?php echo Form::close(); ?>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <!-- coupons edit form ends -->
                            </div>
                            <!-- Account Tab ends -->
                        </div>
                    </div>
                </div>
            </section>
            <!-- coupons edit ends -->

        </div>
    </div>
</div>

<script type="text/javascript">
    var basicPickr = $('.flatpickr-basic');
    basicPickr.flatpickr();
</script>
<!-- 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/edit.blade.php ENDPATH**/ ?>