<?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; Add Manage Parking Providers </h4> </div>
    </div>
    <?php
    $id = $_GET['providerid'];

    $get_details = DB::table('parking_provider')->where('providerid', $id)->get();
?>
    <div class="col-sm-12">
        <div class="white-box">
            <?php $__currentLoopData = $get_details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <form action="update_provider" method="post"  enctype="multipart/form-data" >
                <?php echo csrf_field(); ?>
                <div class="row">
                    <div class="col-sm-6">
                        <div class="form-group" style="padding-top:8%;">
                            <input type="hidden" name="providerid" value="<?php echo e($item->providerid); ?>">
                            <div class="col-md-3" style="margin-top:2%;">
                                <label for="location_name">Name</label>
                            </div>
                            <div class="col-md-9">
                                <input type="text" class="form-control" name="provider_name" id="provider_name" value="<?php echo e($item->provider_name); ?>">
                            </div>
                        </div>
                        <div class="form-group" style="padding-top:8%;">
                            <div class="col-md-3" style="margin-top:2%;">
                                <label for="ratings">Rating</label>
                            </div>
                            <div class="rating col-md-9">
                                <?php if($item->provider_rating == '5'): ?>
                                <input id="provider_ratings5" name="provider_rating" type="radio" value="5" class="radio-btn hide" checked/>
                                <?php else: ?>
                                <input id="provider_ratings5" name="provider_rating" type="radio" value="5" class="radio-btn hide" />
                                <?php endif; ?>
                                <label for="provider_ratings5" >☆</label>
                                <?php if($item->provider_rating == '4'): ?>
                                <input id="provider_ratings4" name="provider_rating" type="radio" value="4" class="radio-btn hide" checked/>
                                <?php else: ?>
                                <input id="provider_ratings4" name="provider_rating" type="radio" value="4" class="radio-btn hide" />
                                <?php endif; ?>
                                <label for="provider_ratings4" >☆</label>
                                <?php if($item->provider_rating == '3'): ?>
                                <input id="provider_ratings3" name="provider_rating" type="radio" value="3" class="radio-btn hide" checked/>
                                <?php else: ?>
                                <input id="provider_ratings3" name="provider_rating" type="radio" value="3" class="radio-btn hide" />
                                <?php endif; ?>
                                <label for="provider_ratings3" >☆</label>
                                <?php if($item->provider_rating == '2'): ?>
                                <input id="provider_ratings2" name="provider_rating" type="radio" value="2" class="radio-btn hide" checked/>
                                <?php else: ?>
                                <input id="provider_ratings2" name="provider_rating" type="radio" value="2" class="radio-btn hide" />
                                <?php endif; ?>
                                <label for="provider_ratings2" >☆</label>
                                <?php if($item->provider_rating == '1'): ?>
                                <input id="provider_ratings1" name="provider_rating" type="radio" value="1" class="radio-btn hide" checked/>
                                <?php else: ?>
                                <input id="provider_ratings1" name="provider_rating" type="radio" value="1" class="radio-btn hide" />
                                <?php endif; ?>
                                <label for="provider_ratings1" >☆</label>
                                <div class="clear"></div>
                            </div>
                        </div>
                        <div class="form-group" style="padding-top:8%;">
                            <div class="col-md-3" style="margin-top:2%;">
                                <label for="description">Description</label>
                            </div>
                            <div class="col-md-9">
                                <input type="text" class="form-control" name="description" id="description" value="<?php echo e($item->description); ?>">
                            </div>
                        </div>
                        <div class="form-group" style="padding-top:8%;">
                            <div class="col-md-3" style="margin-top:2%;">
                                <label for="description">Booking Process</label>
                            </div>
                            <div class="radios">
                                <div style="margin-left: 1%; padding-top:3%;">
                                    <?php if($item->cancellation == '1'): ?>
                                    <input type="radio" id="cover" name="available" value="1" checked>
                                    <?php else: ?>
                                    <input type="radio" id="cover" name="available" value="1">
                                    <?php endif; ?>
                                    <label for="cover">Cover Cancel</label>
                                </div>
                                <div style="margin-left: 10%; padding-top:3%;">
                                    <?php if($item->cancellation == '2'): ?>
                                    <input type="radio" id="booking" name="available" value="2" checked>
                                    <?php else: ?>
                                    <input type="radio" id="booking" name="available" value="2">
                                    <?php endif; ?>
                                    <label for="booking">Booking Cancel</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group" style="padding-top:2%;">
                            <label for="returns">Return procedure</label>
                            <textarea class="summernote" id="summernote"  name="returns" required ><?php echo e($item->returns); ?></textarea>
                        </div>
                        <div class="form-group" style="padding-top:0%;">
                            <label for="drop_off">Procedure</label>
                            <textarea class="summernote" id="summernote"  name="drop_off" required><?php echo e($item->drop_off); ?></textarea>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="form-group" style="padding-top:8%;">
                            <div class="col-md-3" style="margin-top:2%;">
                                <label for="service_type">Service type</label>
                            </div>
                            <div class="col-md-9">
                                <select class="form-control" id="service_type" name="service_type">
                                    <option value="ParkingService" <?php if($item->service_type =="ParkingService") echo 'selected="selected"'; ?> >Parking Service</option>
                                    <option value="RidingService" <?php if($item->service_type =="RidingService") echo 'selected="selected"'; ?> >Riding service</option>
                                    <option value="Park&RidingService" <?php if($item->service_type =="Park&RidingService") echo 'selected="selected"'; ?> >Park & Riding Service</option>
                                    <option value="Meet&GreetService" <?php if($item->service_type =="Meet&GreetService") echo 'selected="selected"'; ?> >Meet & Greet Service</option>
                                  </select>
                            </div>
                        </div>
                        <div class="form-group" style="padding-top:8%;">
                            <div class="col-md-3" style="margin-top:2%;">
                                <label for="logo">Logo</label>
                            </div>
                            <div class="col-md-9">
                                <input type="file" class="form-control" name="logo" id="logo" >
                                <div>
                                    <p style="color: red;">Note: Accept Files: .png, .jpg, .jpeg</p>
                                    <a href="<?php echo e($item->logo); ?>" target="_blank"><img src="<?php echo e($item->logo); ?>" alt="" srcset="" class="edit-img" width="100px" height="100px" style="padding: 8px 0px 8px 0px; "></a>
                                </div>
                            </div>
                        </div>
                        <div class="form-group" style="padding-top:8%;">
                            <div class="col-md-3" style="margin-top:2%;">
                                <label for="rate">Rate</label>
                            </div>
                            <div class="col-md-9">
                                <input type="text" class="form-control" name="rate" id="rate" value="<?php echo e($item->rate); ?>">
                            </div>
                        </div>
                        
                        <div class="form-group" style="padding-top:21.2%;">
                            <label for="overview">Overview</label>
                            <textarea class="summernote" id="summernote"  name="overview"  required><?php echo e($item->overview); ?></textarea>
                        </div>
                        <button type="submit" class="btn btn-primary" style="float: right; margin-right: 1%;
                        margin-top: 60%;">Update</button>
                    </div>
                </div>
            </form>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>

</div>
<style>
.txt-center {
    text-align: center;
}
.hide {
    display: none;
}

.clear {
    float: none;
    clear: both;
}

.rating {
    width: 140px;
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: center;
    position: relative;
    font-size: 30px;
}

.rating > label {
    float: right;
    display: inline;
    padding: 0;
    margin: 0;
    position: relative;
    /* width: 1.0em; */
    cursor: pointer;
    color: #ffbe00;
}

.rating > label:hover,
.rating > label:hover ~ label,
.rating > input.radio-btn:checked ~ label {
    color: transparent;
}

.rating > label:hover:before,
.rating > label:hover ~ label:before,
.rating > input.radio-btn:checked ~ label:before,
.rating > input.radio-btn:checked ~ label:before {
    content: "\2605";
    position: absolute;
    left: 0;
    color: #ffbe00;
}

.radios {
    display: flex
}

</style>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\indigo-parking\resources\views/backend/edit-parking-provider.blade.php ENDPATH**/ ?>