<?php $__env->startSection('content'); ?>


    <main>

        <!-- ---------- breadcrumb ----------- -->
        <?php echo $__env->make('web.layouts.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <!-- ---------- pg_login_form ----------- -->
        <section class="pg_login_form section_padding bg_light pg_register_form">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-lg-10">
                        <div class="content">
                            <div class="row gx-lg-0">
                                <div class="col-lg-5">
                                    <div class="img_content">
                                        <div class="img img_ltr">
                                            <img src="<?php echo e(url('')); ?>/assets/web/images/about1.png" alt="" class="img_cover main_img">
                                            <img src="<?php echo e(url('')); ?>/assets/web/images/shap_left_2.svg" alt="" class="shap_img">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-7">
                                    <div class="form_content">
                                        <h3 class="mb-5 pb-3 border-bottom border-1 text-uppercase"> <?php echo e(__('web.regist')); ?> </h3>
                                        <form action="<?php echo e($action); ?>" method="POST" onsubmit="formAction(this)" class="form">
                                            <?php echo csrf_field(); ?>
                                            <div class="form_cont w-100">
                                                <div class="form-group mb-3">
                                                    <h6 class="mb-2"> <?php echo e(__('web.email')); ?> </h6>
                                                    <input type="email" name="email" class="form-control" placeholder="<?php echo e(__('web.email')); ?>...">
                                                </div>
                                                <!--<div class="form-group mb-3">-->
                                                <!--    <h6 class="mb-2"> <?php echo e(__('web.phone')); ?> </h6>-->
                                                <!--    <input type="number" name="phone" class="form-control" placeholder="<?php echo e(__('web.phone')); ?>...">-->
                                                <!--</div>-->
                                                <div class="form-group mb-3">
                                                    <h6 class="mb-2"> <?php echo e(__('web.username')); ?> </h6>
                                                    <input type="text" name="name" class="form-control" placeholder="<?php echo e(__('web.username')); ?>...">
                                                </div>
                                                <div class="form-group mb-3">
                                                    <h6 class="mb-2"> <?php echo e(__('web.password')); ?> </h6>
                                                    <input type="password" name="password" class="form-control" placeholder="<?php echo e(__('web.password')); ?>...">
                                                </div>
                                                <div class="form-group mb-3">
                                                    <h6 class="mb-2"> <?php echo e(__('web.password_confirmation')); ?> </h6>
                                                    <input type="password" name="password_confirmation" class="form-control" placeholder="<?php echo e(__('web.password_confirmation')); ?>...">
                                                </div>
                                                <div class="form-group mb-3">
                                                    <h6 class="mb-2"> <?php echo e(__('web.gender')); ?> </h6>
                                                    <select name="gender" id="" class="form-control form-select">
                                                        <option value="male"> <?php echo e(__('web.male')); ?> </option>
                                                        <option value="female"> <?php echo e(__('web.female')); ?> </option>
                                                    </select>
                                                </div>
                                                <div class="form-group mb-3">
                                                    <h6 class="mb-2"> <?php echo e(__('web.national_id')); ?> </h6>
                                                    <input type="text" name="national_id" class="form-control" placeholder="...">
                                                </div>
                                                <div class="form-group mt-5">
                                                    <button type="submit" class="butn px-5 py-3"> <span> <?php echo e(__('web.regist')); ?> <i class="fad fa-sign-in ms-2"></i> </span> </button>
                                                </div>
                                                <div class="mt-3"> <?php echo e(__('web.have_acc')); ?> <a href="<?php echo e($login_action); ?>" class="mainColor text-decoration-underline text-uppercase"> <?php echo e(__('web.login')); ?> </a> </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

    </main>


<?php $__env->startSection('inject_js'); ?>
    <script src="<?php echo e(url('')); ?>/assets/web/js/custom/registAction.js"></script>
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB9i5KheHihWwx0k0y0xyqWy-RVLB9AqjU&callback=initMap"></script>

    <script>
        let url_cities = <?php echo json_encode(url(getCurrentLocale().'/city')); ?>;
        var latlng = new google.maps.LatLng(<?php echo $user ?? ''  && $user->id ? $user->latlng : '21.4989, 39.2509'; ?>);
        var map = new google.maps.Map(document.getElementById('map'), {
            center: latlng,
            zoom: 11,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        });
        var marker = new google.maps.Marker({
            position: latlng,
            map: map,
            title: 'Set lat/lon values for this property',
            draggable: true
        });
        google.maps.event.addListener(marker, 'dragend', function(a) {
            console.log(a);
            var div = document.createElement('div');
            div.innerHTML = a.latLng.lat().toFixed(4) + ', ' + a.latLng.lng().toFixed(4);
            document.getElementsByTagName('body')[0].appendChild(div);
            $("#latlng").val(function() {
                return  div.innerHTML;
            });
        });
    </script>
<?php $__env->stopSection(); ?>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('web.layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/ntc/resources/views/web/pages/auth/regist.blade.php ENDPATH**/ ?>