<?php if(session()->has('admin_userid')): ?>
   
<?php else: ?> 
 <script>window.location.href="admin";</script>
<?php endif; ?>


<?php $__env->startSection('content'); ?>


<div class="container-fluid">
    <div class="row bg-title">
        <div class="col-lg-4 col-md-8 col-sm-4 col-xs-12">
            <h4 class="page-title"><i class="fa fa-plus"></i>&nbsp; Edit Peak Days </h4> </div>
    </div>
<?php $__currentLoopData = $details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $peak): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <div class="col-sm-12">
        <div class="white-box">
            <form action="update_days" method="post"  enctype="multipart/form-data" >
                <?php echo csrf_field(); ?>
                 <input type="hidden" value="<?php echo $peak->peak_id; ?>" name="peakid" id="peakid">
                <div class="row">
                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="col-md-12">City Name</label>
                                            <div class="col-md-12">
                                                <select class="form-control" id="city_list" name="city_list" required>
                                                    <?php 
                                                    $get_city = DB::table('city_master')->where('city_id',$peak->city_id)->get();
                                                    ?>
                                                    <?php $__currentLoopData = $get_city; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($cate->city_id); ?>" selected style="background: #0196d8;color: #fff;"><?php echo e($cate->city_name); ?></option>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                                    <?php 
                                                    $get_city = DB::table('city_master')->get();
                                                    ?>
                                                    <?php $__currentLoopData = $get_city; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($cate->city_id); ?>"><?php echo e($cate->city_name); ?></option>
                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                     <div class="col-md-6">
                                    <div class="form-group">
                                        <label class="control-label">Select Provider Name</label>
                                        <select class="form-control" id="provide_id" name="provide_id" required>
                                                <?php 
                                                $get_provider = DB::table('parking_provider')->where('providerid',$peak->provider_id)->get();
                                                ?>

                                                <?php $__currentLoopData = $get_provider; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $provide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                                <?php if($provide->providerid !=""): ?>
                                                <option value="<?php echo e($provide->providerid); ?>" selected style="background: #0196d8;color: #fff;"><?php echo e($provide->provider_name); ?></option>

                                                <?php else: ?>

                                                <?php 
                                                $get_provider2 = DB::table('parking_provider')->get();
                                                ?>
                                                <?php $__currentLoopData = $get_provider2; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $provide2): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($provide2->providerid); ?>"><?php echo e($provide2->provider_name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                
                                                <?php endif; ?>

                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 

                                                
                                        </select>
                                    </div>
                                </div>
                    <div class="col-md-3">
                                    <div class="form-group">
                                        <label class="control-label">From</label>
                                       <input type="date"class="form-control" value="<?php echo e($peak->from); ?>" name="from" id="name">
                                    </div>
                                </div>
                    <div class="col-md-3">
                                    <div class="form-group">
                                        <label class="control-label">To</label>
                                       <input type="date" class="form-control" value="<?php echo e($peak->to); ?>" name="to" id="to">
                                    </div>
                                </div>
                    <div class="col-md-6">
                        <div class="form-group">
                                        <label class="control-label">Rate</label>
                                       <input type="text"class="form-control" value="<?php echo e($peak->price); ?>" name="rate" id="rate">
                                    </div>
                    </div>
                <div class="col-md-6">
                    <button type="submit" class="btn btn-primary">Submit</button>
                </div>
                </div>
            </form>
        </div>
    </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/chitr171/public_html/indigoparking/resources/views/backend/edit-peak-days.blade.php ENDPATH**/ ?>