<?php echo $__env->make('admin.layouts.alert-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> 
<form method="post" action="<?php echo e(request()->url()); ?>" id="input_form">
	<?php echo csrf_field(); ?>
    <div class="row">
        <div class="form-group col-lg-6">
            <label>Judul <text class="text-danger">*</text></label>
            <input type="text" class="form-control" name="title" id="title" value="<?php echo e(old('title') ?? $target->title); ?>">
            <small id="title"></small>
        </div>
        <div class="form-group col-lg-6">
            <label>Slug <text class="text-danger">*</text></label>
            <input type="text" class="form-control" name="slug" id="slug" value="<?php echo e(old('slug') ?? $target->slug); ?>">
            <small id="slug"></small>
        </div>
    </div>
    <div class="form-group">
        <label>Konten <text class="text-danger">*</text></label>
        <textarea class="form-control custom-text-editor" name="content" id="content" rows="5"><?php echo e(old('content') ?? $target->content); ?></textarea>
        <small id="content"></small>
    </div>
    <hr />
    <div class="button-items d-grid gap-2 hidden" id="process-button">
        <button type="button" class="btn btn-primary btn-block waves-effect waves-light mt-0" disabled>Mohon Tunggu...</button>
    </div>
    <div class="row" id="main-button">
        <div class="col-6">
            <div class="button-items d-grid gap-2">
                <button type="reset" class="btn btn-secondary btn-block waves-effect waves-light mt-0"><i class="mdi mdi-refresh"></i> Reset</button>
            </div>
        </div>
        <div class="col-6">
            <div class="button-items d-grid gap-2">
                <button type="submit" class="btn btn-custom btn-block waves-effect waves-light mt-0"><i class="mdi mdi-send-outline"></i> Submit</button>
            </div>
        </div>
    </div>
</form>
<script src="<?php echo e(asset('assets/js/modal-form.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/app.js')); ?>"></script>
<script>
    function slugify(string) {
        return string
        .toString()
        .trim()
        .toLowerCase()
        .replace(/\s+/g, "-")
        .replace(/[^\w\-]+/g, "")
        .replace(/\-\-+/g, "-")
        .replace(/^-+/, "")
        .replace(/-+$/, "");
    }
    $(function() { 
        $("#title").keyup(function() { 
            var slug = slugify($('#title').val());
            $('#slug').val(slug);
        }).filter(":first").keyup(); //Run it once
    });
    $('.custom-text-editor').summernote({
        height: 230
    });
</script><?php /**PATH /home/glor5228/public_html/resources/views/admin/settings/website_page/form.blade.php ENDPATH**/ ?>