
<?php $__env->startSection('title'); ?>
<title><?php echo e($websiteLang->where('lang_key','property_type')->first()->custom_text); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
    <!-- Page Heading -->
    <h1 class="h3 mb-2 text-gray-800"><a href="<?php echo e(route('admin.property-type.index')); ?>" class="btn btn-primary"><i class="fas fa-list" aria-hidden="true"></i> <?php echo e($websiteLang->where('lang_key','all_property_type')->first()->custom_text); ?> </a></h1>
    <!-- DataTales Example -->
    <div class="row">
        <div class="col-md-7">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary"><?php echo e($websiteLang->where('lang_key','property_type_s')->first()->custom_text); ?></h6>
                </div>
                <div class="card-body">

                    <form action="<?php echo e(route('admin.property-type.store')); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <div class="form-group">
                            <label for="type"><?php echo e($websiteLang->where('lang_key','type')->first()->custom_text); ?></label>
                            <input type="text" name="type" class="form-control" id="type" value="<?php echo e(old('type')); ?>">
                        </div>
                        <div class="form-group">
                            <label for="slug"><?php echo e($websiteLang->where('lang_key','slug')->first()->custom_text); ?></label>
                            <input type="text" name="slug" class="form-control" id="slug" value="<?php echo e(old('slug')); ?>">
                        </div>


                        <div class="form-group">
                            <label for="status"><?php echo e($websiteLang->where('lang_key','status')->first()->custom_text); ?></label>
                            <select name="status" id="status" class="form-control">
                                <option  value="1"><?php echo e($websiteLang->where('lang_key','active')->first()->custom_text); ?></option>
                                <option  value="0"><?php echo e($websiteLang->where('lang_key','inactive')->first()->custom_text); ?></option>
                            </select>
                        </div>

                        <button type="submit" class="btn btn-success"><?php echo e($websiteLang->where('lang_key','save')->first()->custom_text); ?></button>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <script>
        (function($) {
        "use strict";
        $(document).ready(function () {
            $("#type").on("focusout",function(e){
                $("#slug").val(convertToSlug($(this).val()));
            })
        });

        })(jQuery);

        function convertToSlug(Text)
            {
                return Text
                    .toLowerCase()
                    .replace(/[^\w ]+/g,'')
                    .replace(/ +/g,'-');
            }
    </script>

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

<?php echo $__env->make('layouts.admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/cloudelite/imobi.eliteteclda.com/resources/views/admin/listing-category/create.blade.php ENDPATH**/ ?>