<?php $__env->startSection('blade'); ?>
    <div class="address-wrapper">
        <div class="address-type-content">
            <h6 class="mb-3"><?php echo app('translator')->get('Choose Delivery Type'); ?></h6>

            <div class="delivery-type-wrapper">
                <?php $__currentLoopData = $shippingMethods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <label for="method-<?php echo e($item->id); ?>" class="delivery-type">
                        <span class="form--check d-flex">
                            <input class="form-check-input mt-0" type="radio" name="shipping_method_id" value="<?php echo e($item->id); ?>" form="deliveryMethodForm" id="method-<?php echo e($item->id); ?>" data-resource="<?php echo e($item); ?>" <?php if($loop->first): echo 'checked'; endif; ?> required>
                        </span>

                        <span class="delivery-type-name">
                            <?php echo e(__($item->name)); ?>

                        </span>
                    </label>

                    <div class="methodInfo mt-3 delivery-type-content">
                        <div class="address-item-inner">
                            <span class="address-item-label"><?php echo app('translator')->get('Delivered In'); ?></span>
                            <span class="address-item-value"> <span class="item-devide">:</span> <?php echo e($item->shipping_time); ?> <?php echo app('translator')->get('Days'); ?></span>
                        </div>

                        <div class="address-item-inner">
                            <span class="address-item-label"><?php echo app('translator')->get('Delivery Charge'); ?></span>
                            <span class="address-item-value">
                                <span class="item-devide">:</span>
                               <?php echo e(showAmount($item->charge)); ?>

                            </span>
                        </div>

                        <?php if(strip_tags($item->description)): ?>
                            <div class="address-item-inner bg-light p-3 rounded-3 ">
                                <p>
                                    <?php echo $item->description ?>
                                </p>
                            </div>
                         <?php endif; ?>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </div>
    <div class="d-flex align-items-center justify-content-between mt-4 flex-wrap">
        <a href="<?php echo e(route('user.checkout.shipping.info')); ?>" class="text--base ">
            <i class="las la-angle-left"></i> <?php echo app('translator')->get('Back to Shipping Info'); ?>
        </a>
        <form action="<?php echo e(route('user.checkout.delivery.method.add')); ?>" method="POST" id="deliveryMethodForm">
            <?php echo csrf_field(); ?>
            <button type="submit" class="btn btn--base h-45"><?php echo app('translator')->get('Continue to Next'); ?> <i class="la la-angle-right"></i></button>
        </form>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('style'); ?>
    <style>
        .address-item-inner p {
            margin-bottom: 0 !important;
        }

        .delivery-type-content{
            display: none;
            order: 2;
        }

        .delivery-type{
            order: 0;
        }

        .delivery-type-wrapper:has(.delivery-type:first-of-type input:checked) .delivery-type-content:first-of-type{
            display: block;
        }

         .delivery-type-wrapper:has(.delivery-type:last-of-type input:checked) .delivery-type-content:last-of-type{
            display: block;
        }
    </style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.checkout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/creativedesignbd/ecommerce7.creativedesign.com.bd/core/resources/views/templates/basic/user/checkout_steps/shipping_methods.blade.php ENDPATH**/ ?>