<?php $__env->startSection('sitecontent'); ?>
<style type="text/css">
    .nextbtn{
        /* width: auto; */
    }
</style>
<section class="headerbg headerbg-inner">
    <div class="header header-padding">
        <?php echo $__env->make('partials.site.header-menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>
    <div class="inner-heading"><?php echo e(__('lang.checkout_title')); ?></div>
</section>
<section class="order-details-bg">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-11">
                <?php echo $__env->make('partials.site.alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="chooselocation selectlocation">
                    <span><img src="<?php echo e(asset('site-assets/images/chooseloacation.png')); ?>"  /></span>
                    <?php echo e(__('lang.select_location')); ?>

                </div>
                <div class="add-address">
                    <a href="javascript:;" onclick="showAddressForm()"><img src="<?php echo e(asset('site-assets/images/plusico.png')); ?>" style="width: 30%;" /></a> <span onclick="showAddressForm()" style="cursor: pointer;"><?php echo e(__('lang.add_address')); ?></span>
                </div>
                <div class="addressformbg" id="addAddressForm" style="display: none">
                    <div class="row">
                        <div class="col-lg-7">
                            <div class="map">
                                <div id="myMap" style="height: 600px;width: 100%;position: relative;overflow: hidden;border: 1px solid #a5a5a5;border-radius: 5px;margin-bottom: 5px"></div>
                            </div>
                        </div>
                        <div class="col-lg-5">
                            <div class="addressform">
                                <?php echo Form::model(null, ['method' => 'POST', 'url' => ['add-address']]); ?>

                                    <?php echo csrf_field(); ?>
                                    <input type="hidden" name="location_name" id="location_name" value="">
                                    <input type="hidden" name="latitude" id="latitude" value="28.644800">
                                    <input type="hidden" name="longitude" id="longitude" value="77.216721">
                                    <input type="hidden" name="city" id="city">
                                    <input type="hidden" name="state" id="state">
                                    <input type="hidden" name="zipcode" id="zipcode">
                                    <input type="hidden" name="country" id="country">
                                    <div class="row">
                                        <div class="form-group col-md-12">
                                            <label><?php echo e(__('lang.address_detact_location')); ?></label>
                                            <input type="text" class="form-control" name="google_address" id="google_address"    placeholder="<?php echo e(__('lang.address_detact_location')); ?>"/>
                                        </div>
                                        <div class="form-group col-md-12">
                                            <label><?php echo e(__('lang.address_type')); ?></label>
                                            <div class="radio">
                                                <input label="" type="radio" id="Home" name="type" value="<?php echo e(__('lang.address_home')); ?>" checked />
                                                <input label="" type="radio" id="Office" name="type" value="<?php echo e(__('lang.address_office')); ?>" />
                                                <input label="" type="radio" id="Mosque" name="type" value="<?php echo e(__('lang.address_mosque')); ?>" />
                                                <input label="" type="radio" id="other" name="type" value="<?php echo e(__('lang.address_other')); ?>" />
                                            </div>
                                        </div>
                                        <div class="form-group col-md-12">
                                            <label><?php echo e(__('lang.address_title')); ?></label>
                                            <input type="text" class="form-control" name="address" placeholder="<?php echo e(__('lang.address_title')); ?>" />
                                        </div>
                                        <div class="form-group col-md-12">
                                            <label><?php echo e(__('lang.placeholder_note')); ?></label>
                                            <textarea class="form-control" name="note" id="note" style="height: 70px;" placeholder="<?php echo e(__('lang.placeholder_note')); ?>" ></textarea>
                                        </div>
                                        <div class="form-group col-md-12">
                                            <button class="save-btn text-uppercase float-right" type="submit"><?php echo e(__('lang.save_button')); ?>&nbsp;&nbsp;<img src="<?php echo e(asset('site-assets/images/arrowright.png')); ?>" class="mt-n-1" /></button>
                                            <button type="button" onClick="hideAddressForm();" class="save-btn text-uppercase float-left" style="background: #af7ab3;"><?php echo e(__('lang.cancel_button')); ?>&nbsp;&nbsp;<img src="<?php echo e(asset('site-assets/images/arrowright.png')); ?>" class="mt-n-1" /></button>
                                        </div>
                                    </div>
                                <?php echo Form::close(); ?>

                            </div>
                        </div>
                    </div>
                </div>
                <?php echo Form::model(null, ['method' => 'GET', 'url' => ['place-order']]); ?>

                    <?php echo csrf_field(); ?>
                    <div class="select-address">
                        <?php if(count($data)>0): ?>
                            <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="custom-control custom-radio">
                                    <input type="radio" class="custom-control-input" name="delivery_address_id" value="<?php echo e($row->id); ?>" id="customRadio_<?php echo e($row->id); ?>" name="selectaddress">
                                    <label class="custom-control-label" for="customRadio_<?php echo e($row->id); ?>"> <span><?php echo e($row->type); ?> <?php if($row->location_name!=''): ?>(<?php echo e($row->location_name); ?>)<?php endif; ?></span> <?php if($row->address!=''): ?> <?php echo e($row->address); ?>, <?php endif; ?>  <?php if($row->city!=''): ?> <?php echo e($row->city); ?>, <?php endif; ?>  <?php if($row->state!=''): ?> <?php echo e($row->state); ?>, <?php endif; ?> <?php echo e($row->zipcode); ?></label>
                                    <a onclick="return confirm('Are you sure you want to delete this address?');" class="checkouts" href="<?php echo e(url('/delete-address')); ?>/<?php echo e($row->id); ?>"><img src="images/icon-trash.svg" alt=""></a>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </div>
                    <div class="nextbtn">
                        <button class="save-btn text-uppercase float-left full-width-btn" type="submit"><?php echo e(__('lang.next_button')); ?>&nbsp;&nbsp;<img src="<?php echo e(asset('site-assets/images/arrowright.png')); ?>" class="mt-n-1"/></button>
                    </div>
                <?php echo Form::close(); ?>

            </div>
        </div>
    </div>
</section>
<footer class="footer">
    <?php echo $__env->make('partials.site.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</footer>
<script type="text/javascript">
    setTimeout(function(){
        getLocation();
    },1500);
</script>

<!-- END: Content-->

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.site-app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/waterfl/public_html/resources/views/checkout.blade.php ENDPATH**/ ?>