
<?php echo $__env->make('includes.order_header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<main class="main-content">
    <div class="single-product-area section-space-top-100">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 pt-9 pt-lg-0">
                    <div class="single-product-content text-center">
                        <h2 class="title mb-5 mt-5">The Tire Studio Distributors | Warranty/Return Form</h2>
                        <div class="rating-box-wrap pb-3">
                            <div class="review-status">
                                <p>* All submissions are subject to a review by The Tire Studio Distributors.</p>
                            </div>
                        </div>
                        <p class="rating-box-wrap pb-3">Submission type:*</p>
                        <div class="row">
                        	<div class="col-md-6">
		                        <div class="product-category pb-3">
		                            <div class="form-check">
		                                <input class="form-check-input" type="radio" name="submission_type" value="warranty" id="radioDefault1" onclick="get_form('warranty');">
		                                <label class="form-check-label" for="radioDefault1">Warranty </label>
		                            </div>
		                        </div>
                        	</div>
                        	<div class="col-md-6">
	                        	<div class="product-category pb-3">
		                            <div class="form-check">
		                                <input class="form-check-input" type="radio" name="submission_type" value="return" id="radioDefault2" onclick="get_form('return');">
		                                <label class="form-check-label" for="radioDefault2">Return </label>
		                            </div>
	                        	</div>
                        	</div>
                        </div>
                        <div class="product-category product-tags pb-3">
                            <span class="title">Please choose the type of submission you'd like to proceed with</span>
                        </div>
                    </div>
                    <div class="row" id="form_div">

                    </div>
                </div>
            </div>
        </div>
    </div>
</main>
<?php echo $__env->make('includes.order_footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<script>
	function get_form(type){

    $.ajax({
        type: "POST",
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        },
        dataType: "json",
        url: "<?php echo e(url('/')); ?>/get-warranty-return-form",
        data: {type:type},
        success: function (res, status, xhr) {
         $("#form_div").html(res.html);

        },
    });
}
function get_account_form(type){

    if(type == 'yes')
    {
        $("#warranty_account_form").removeClass('d-none');
    }
    else
    {
        $("#warranty_account_form").addClass('d-none');
    }

}
function get_account_address(type){

    if(type == 'no')
    {
        $(".account_addr").removeClass('d-none');
    }
    else
    {
        $(".account_addr").addClass('d-none');
    }

}
</script><?php /**PATH C:\xampp\htdocs\thetireshop\resources\views/order/warranty_return.blade.php ENDPATH**/ ?>