KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/sld.edukrypt.app/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/sld.edukrypt.app/storage/framework/views/ef8632dca0e5151427dbe73531a624682566a9ea.php
<?php $__env->startSection('content'); ?>
    <!-- begin::main content -->

    <main class="main-content">

        <div class="container">

            <!-- begin::page header -->
            <div class="page-header">
                <h3>Edit Content</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
                        <li class="breadcrumb-item"><a
                                href="<?php echo e(asset('admin/contents/' . $policy->id)); ?>"><?php echo e($policy->name_en); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo e($contents->title_en); ?></li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->

            <div class="row">
                <div class="col-md-12">

                    <?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
                    <div class="card">
                        <div class="card-header">
                            <a href="<?php echo e(asset('admin/contents/' . $policy->id)); ?>"
                                class="btn btn-primary pull-right text-white"><i class="fa fa-list"></i>&nbsp;Contents</a>
                        </div>
                        <div class="card-body">

                            <div class="row">
                                <div class="col-md-6">
                                    
                                    <div class="form-group">
                                        <label for="type">Type <span class="text-danger">*</span></label>
                                        <select class="form-control" name="type" id="type">
                                            <option <?php echo e($contents->type == 'intro' ? 'selected' : ''); ?> value="intro">
                                                Intro
                                            </option>
                                            <option <?php echo e($contents->type == 'slide' ? 'selected' : ''); ?> value="slide">
                                                Slide</option>
                                            <option <?php echo e($contents->type == 'quiz' ? 'selected' : ''); ?> value="quiz">
                                                Quiz</option>
                                        </select>
                                    </div>


                                    
                                    <div class="form-group">
                                        <label for="title_en">Title In English <span class="text-danger">*</span></label>
                                        <input readonly value="<?php echo e($contents->title_en); ?>" class="form-control"
                                            type="text" name="title_en" id="title_en">
                                    </div>

                                    
                                    <div class="form-group">
                                        <label for="title_en">Slug <span class="text-danger">*</span></label>
                                        <input readonly value="<?php echo e($contents->slug); ?>" class="form-control" type="text"
                                            name="slug" id="slug">
                                    </div>

                                    
                                    <div class="form-group">
                                        <label for="name_en">Title In Hindi</label>
                                        <input readonly value="<?php echo e($contents->title_hi); ?>" class="form-control"
                                            type="text" name="title_hi" id="title_hi">
                                    </div>
                                </div>
                            </div>


                            
                            <div class="form-group">
                                <label for="description_hi">Description In English</label>
                                <div class="card">
                                    <div class="card-body">
                                        <?php echo $contents->description_en; ?>

                                    </div>

                                </div>
                            </div>

                            
                            <div class="form-group">
                                <label for="description_hi">Description In Hindi</label>
                                <div class="card">
                                    <div class="card-body">
                                        <?php echo $contents->description_hi; ?>

                                    </div>

                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-6">
                                    
                                    <div class="form-group">
                                        <label for="sort">Sorting</label>
                                        <input readonly value="<?php echo e($contents->sort); ?>" class="form-control" type="number"
                                            min="1" name="sort" id="sort">
                                    </div>

                                    
                                    <div class="form-group">
                                        <label for="image">Thumbnail (256x256)</label><br>
                                        <img class="img-thumbnail" style="width: 100px;"
                                            src="<?php echo e(asset('public/uploads/content/' . $contents->image)); ?>"
                                            alt="$contents->slug">
                                    </div>

                                </div>
                            </div>



                        </div>
                    </div>



                </div>

            </div>

        </div>

    </main>
    <!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
    <script src="https://cdn.tiny.cloud/1/2yakjhog3q99clqs9f7wdy8kkrcepa90vydq9zcqxovfj58h/tinymce/6/tinymce.min.js"
        referrerpolicy="origin"></script>
    <script type="text/javascript">
        tinymce.init({
            selector: 'textarea',
            plugins: 'anchor autolink charmap codesample emoticons image link lists media searchreplace table visualblocks wordcount',
            toolbar: 'undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table | align lineheight | numlist bullist indent outdent | emoticons charmap | removeformat',
            content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }',
            height: 300,
            menubar: false,
            images_upload_handler: function(blobInfo, success, failure) {
                var xhr, formData;
                xhr = new XMLHttpRequest();
                xhr.withCredentials = false;
                xhr.open('POST', "<?php echo e(asset('admin/upload')); ?>");
                var token = $('meta[name="csrf-token"]').attr('content');
                xhr.setRequestHeader("X-CSRF-Token", token);
                xhr.onload = function() {
                    var json;
                    if (xhr.status != 200) {
                        failure('HTTP Error: ' + xhr.status);
                        return;
                    }
                    json = JSON.parse(xhr.responseText);

                    if (!json || typeof json.location != 'string') {
                        failure('Invalid JSON: ' + xhr.responseText);
                        return;
                    }
                    success(json.location);
                };
                formData = new FormData();
                formData.append('file', blobInfo.blob(), blobInfo.filename());
                xhr.send(formData);
            },
            file_picker_callback: function(cb, value, meta) {
                var input = document.createElement('input');
                input.setAttribute('type', 'file');
                input.setAttribute('accept', 'image/*');
                input.onchange = function() {
                    var file = this.files[0];
                    var id = 'blobid' + (new Date()).getTime();
                    var blobCache = tinymce.activeEditor.editorUpload.blobCache;
                    var blobInfo = blobCache.create(id, file);
                    blobCache.add(blobInfo);
                    cb(blobInfo.blobUri(), {
                        title: file.name
                    });
                };
                input.click();
            }
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/sld.edukrypt.app/resources/views/admin/contents/view.blade.php ENDPATH**/ ?>

Anon7 - 2021