<?php echo $__env->make('Admin.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>



<div class="main-content">
    <div class="container">

<br>
<br>
<br>
<br>

    <?php if($errors->any()): ?>
        <div class="alert alert-danger">
          <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </ul>
        </div>
        <?php endif; ?>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card card-shadow mb-4">
                            <div class="card-header">
                                <div class="card-title" style="float: left;">
                                    Update Coupon
                                </div> 
                                <div class="card-title" style="float: right;">
                                    <a href="<?php echo e(route('deliverychargeadd.index')); ?>" class="btn btn-warning">View</a>
                                     <a href="<?php echo e(url('/Admin-dashboard')); ?>" class="btn btn-danger">X</a>
                                </div>
                            </div>
                            <div class="card-body">

                                <form method="post" class=" right-text-label-form feedback-icon-form" action="<?php echo e(route('deliverychargeadd.update',[$data->id])); ?>" enctype="multipart/form-data">
                                    <?php echo method_field('PATCH'); ?>
                                    <?php echo csrf_field(); ?>
                       

                                    <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1">Zone Name</label>
                                        <div class="col-sm-5">
                                           <select name="zone_id" id="zone_id" class="form-control">       
                                            <option value="<?php echo e($data->zone_id); ?>"><?php echo e($data->zone->zone_name ?? ''); ?></option>
                                            <?php if($zone): ?>
                                            <?php $__currentLoopData = $zone; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $zonedata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($zonedata->id != $data->zone_id): ?>
                                            <option value="<?php echo e($zonedata->id); ?>"  <?php if ($zonedata->id == $data->zone_id) { echo "selected"; } ?>><?php echo e($zonedata->zone_name); ?></option>
                                            <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                            </select>
                                        </div>
                                    </div>

                                
<!--                                   <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1"> Shipping Class</label>
                                        <div class="col-sm-5">
                                           <select class="form-control" name="shipping_id">

                             

                                            <?php if($ship): ?>
                                            <?php $__currentLoopData = $ship; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $shipdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($data->shipping_id == $shipdata->id): ?>
                                               <option value="<?php echo e($shipdata->id); ?>"><?php echo e($shipdata->shipping_name); ?></option>
                                            <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>

                                            <?php if($ship): ?>
                                            <?php $__currentLoopData = $ship; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $shipdata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php if($data->shipping_id != $shipdata->id): ?>
                                               <option value="<?php echo e($shipdata->id); ?>"><?php echo e($shipdata->shipping_name); ?></option>
                                            <?php endif; ?>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php endif; ?>
                                           </select>
                                        </div>
                                    </div> -->


                                    <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1"> Charge</label>
                                        <div class="col-sm-5">
                                            <input type="number" class="form-control" id="charge" name="charge" placeholder=" price" value="<?php echo e($data->charge); ?>"/>
                                        </div>
                                    </div>
                                
                                   

                                    <div class="form-group row">
                                        <div class="col-sm-8 ml-auto">
                                            <button type="submit" class="btn btn-success" name="signup1" value="Sign up">Create</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
<?php echo $__env->make('Admin.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\office\electronics\resources\views/Admin/Deliverycharge/modal.blade.php ENDPATH**/ ?>