



<?php $__env->startSection('content'); ?>
    <div class="bg-image" style="background-image: url('assets/media/photos/photo10@2x.jpg');">
        <div class="bg-primary-dark-op">
            <div class="content content-full text-center">
                
                <h1 class="h2 text-white mb-0">Domain Transfer</h1>
                
            </div>
        </div>
    </div>



    <div class="content content-boxed">
        <div class="block block-rounded">
            <div class="block-header block-header-default">

                <h3 class="block-title">Domain Transfer</h3>


            </div>

            <?php if(Session::has('error_message')): ?>
                <div class="alert alert-danger d-flex align-items-center justify-content-between" role="alert">
                    <div class="flex-grow-1 me-3">
                        <p class="mb-0">
                            <?php echo e(Session::get('error_message')); ?>

                        </p>
                    </div>

                </div>
            <?php endif; ?>

            <?php if(Session::has('success_message')): ?>
                <div class="alert alert-success d-flex align-items-center justify-content-between" role="alert">
                    <div class="flex-grow-1 me-3">
                        <p class="mb-0">
                            <?php echo e(Session::get('success_message')); ?>

                        </p>
                    </div>

                </div>
            <?php endif; ?>

            <div class="block-content block-content-full first-step">
                <?php $__empty_1 = true; $__currentLoopData = $errors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <p><?php echo e($error); ?></p>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <?php endif; ?>
               <div class="row" style="justify-content:center">
                    <div class="col-lg-12 col-xl-8">   
                        <div class="form-floating mb-4">
                            <select class="form-select domainTransferOption" id="example-select-floating" name="Option"
                                aria-label="Floating label select example">
                                <option value="None" hidden>Select Option</option>
            					<option value="Domain" <?php echo e(isset($_GET['type']) && $_GET['type'] == 'domain' ? 'selected':''); ?> >.AF Domain Transfer</option>
            					<option value="LeapToLeap" <?php echo e(isset($_GET['type']) && $_GET['type'] == 'leap' ? 'selected':''); ?>>myLEAP To myLEAP</option>
                            </select>
                            <label for="example-select-floating">Please Select your Transfer Option</label>
                        </div>
                   </div>
               </div>
            </div>
            
            <div class="second-step" style="display:none;">
                <div class="block-content block-content-full " >
               <div class="row justify-center">
                    <form action="<?php echo e(route('domain.transfer.check')); ?>" method="POST" class="row" style="justify-content:center">
                    <?php echo csrf_field(); ?>
                    <input type="hidden" class="transferOption" name="transferOption" />
                   <div class="col-lg-12 col-xl-8"> 
                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" placeholder="Domain Name *" required
                                    name="domain_name">
                                <label for="example-password-input-floating">Domain Name *</label>
                            </div>

                            <button type="submit" class="btn btn-alt-primary">Check</button>
                        </div>
                </form>
               </div>
            </div>
            </div>
            
            
        </div>


    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
    $(document).ready(function(){
        $('.domainTransferOption').change(function(){
            const check = $(this).val();
            const options =  ['Domain','LeapToLeap'];
            if(options.includes(check)){
                $('.first-step').css('display','none');
                $('.second-step').css('display','');
                $('.transferOption').val(check);
            }else{
                $('.first-step').css('display','');
                $('.second-step').css('display','none');
                $('.transferOption').val("");
            }
        });
    });
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('Dashboard.master_page', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/leaparyanict/aict.leap.aryanict.com/resources/views/Dashboard/DomainTransfer/index.blade.php ENDPATH**/ ?>