<?php $__env->startSection('maincontent'); ?>
<?php $__env->startSection('meta'); ?>
    <title>Vendor-Register</title>
<?php $__env->stopSection(); ?>
<style>
    #carouselitem {
        height: 200px;
    }
    #header-carousel img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 6px;
    }
    #carouselitem {
        height: auto;
        padding-top: 10px;
    }
    #lgbtn{
        background: black;
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
        font-size: 20px;
        border-radius: 6px;
    }
</style>

<div class="body-content">
    <div class="container">
        <div class="sign-in-page m-b-10">
            <div class="row">
                <!-- create a new account -->
                <div class="col-md-3 col-sm-2 create-new-account">

                </div>
                <!-- Sign-in -->
                <div class="mt-4 mb-4 col-md-6 col-sm-8 sign-in">
                    <div class="card" style="padding: 0px 18px;border-radius: 6px;">
                        <h4 class="pt-4 pb-2 m-0 text-center checkout-subtitle"> <b>Fill Up The Form & Become a Vendor</b> </h4>
                        <form class="register-form outer-top-xs" method="POST" action="<?php echo e(url('vendor-register')); ?>" role="form">
                            <?php echo csrf_field(); ?>
                            <div class="form-group">
                                <label class="info-title" for="exampleInputEmail1">Name <span>*</span></label>
                                <input type="text" name="name" class="form-control unicase-form-control text-input"
                                    required>
                            </div>
                            <div class="form-group">
                                <label class="info-title" for="exampleInputEmail2">Email <span>*</span></label>
                                <input type="text" name="email" class="form-control unicase-form-control text-input"
                                    required>
                            </div>

                            <div class="form-group">
                                <label class="info-title" for="exampleInputEmail2">Phone <span>*</span></label>
                                <input type="text" name="phone" class="form-control unicase-form-control text-input"
                                    required>
                            </div>
                            <div class="form-group">
                                <label class="info-title" for="exampleInputEmail1">Password <span>*</span></label>
                                <input type="password" name="password" class="form-control unicase-form-control text-input"
                                    id="password" required>
                            </div>
                            <div class="mb-4 form-group">
                                <label class="info-title" for="exampleInputEmail1">Confirm Password <span>*</span></label>
                                <input type="password" onkeyup="checkpass()" id="confirm_password"
                                    class="m-0 form-control unicase-form-control text-input" required>
                                <small id="confirm_passwordtextmatch" style="color: deepskyblue;display:none">Password
                                    Matched</small>
                                <small id="confirm_passwordtext" style="color: red;display:none">Password Not
                                    Matched</small>
                            </div>
                            <button type="submit" id="lgbtn"
                                class="btn-block btn-upper btn btn-dark checkout-page-button" style="width:100%" >Registration</button>
                        </form>
                        <h4 class="text-right" style="margin-top: 6px;margin-bottom:20px;">
                            <p style="font-size: 16px;margin-bottom:6px;color: #000">Already have an account? </p>
                            <a href="<?php echo e(url('login')); ?>"  class="text-dark" > <b>Login Now</b>
                            </a>
                        </h4>
                    </div>
                </div>
                <!-- Sign-in -->

                <!-- create a new account -->
                <div class="col-md-3 col-sm-2 create-new-account">

                </div>
                <!-- create a new account -->
            </div><!-- /.row -->

        </div><!-- /.sigin-in-->
    </div><!-- /.row -->
</div><!-- /.sigin-in-->

<script>
    $(document).ready(function(){

    });
    function checkpass() {
        var pass = $('#password').val();
        var con_pass = $('#confirm_password').val();
        if (pass == con_pass) {
            $('#confirm_passwordtext').css('display', 'none');
            $('#confirm_passwordtextmatch').css('display', 'inline');
            $('#submit-button').prop('disabled', false);
        } else {
            $('#confirm_password').focus();
            $('#confirm_passwordtext').css('display', 'inline');
            $('#confirm_passwordtextmatch').css('display', 'none');
            $('#submit-button').prop('disabled', true);
        }
    }

    function checkunick() {
        var username = $('#username').val();
        $.ajax({
            type: "GET",
            url: "<?php echo e(url('check/username')); ?>/" + username,

            success: function(data) {

                if (data == 'taken') {
                    $('#username').focus();
                    $('#submit-button').prop('disabled', true);
                    $('#avaliableusername').css('display', 'none');
                    $('#unavaliableusername').css('display', 'inline');
                } else {
                    $('#avaliableusername').css('display', 'inline');
                    $('#unavaliableusername').css('display', 'none');
                    $('#submit-button').prop('disabled', false);
                }
            }
        });
    }
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('webview.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/jafrafas/jaframart.com/resources/views/auth/shopreg.blade.php ENDPATH**/ ?>