<?php if (isset($component)) { $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb = $attributes; } ?>
<?php $component = Modules\LMS\View\Components\Dashboard\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Modules\LMS\View\Components\Dashboard\Layout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('title', null, []); ?> 
        <?php echo e(translate('View Blog')); ?>

     <?php $__env->endSlot(); ?>
    <!-- BREADCRUMB -->
    <?php if (isset($component)) { $__componentOriginalcf27f2c2c873893339708d5fdeeb6984 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.breadcrumb','data' => ['backUrl' => ''.e(route('blog.index')).'','title' => 'View','pageTo' => 'Blog']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.breadcrumb'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['back-url' => ''.e(route('blog.index')).'','title' => 'View','page-to' => 'Blog']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $attributes = $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $component = $__componentOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>

    <div class="grid grid-cols-12 gap-x-4">
        <div class="col-span-full md:col-span-7 card">
            <div>
                <label for="blog-title" class="form-label"><?php echo e(translate('Blog Title')); ?> <span class="text-danger">*</span>
                </label>
                <input type="text" id="blog-title" placeholder="<?php echo e(translate('Title')); ?>" name="title" readonly
                    class="form-input" autocomplete="off" value="<?php echo e($blog->title ?? ''); ?>">
                <span class="text-danger error-text title_err"></span>
            </div>
            <div class="mt-6">
                <label class="form-label"><?php echo e(translate('Blog Category')); ?> <span class="text-danger">*</span></label>
                <select class="multipleSelect" multiple="multiple" name="blog_categoryId[]" readonly>
                    <?php $__currentLoopData = get_all_blog_category(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php $categoryTranslations = parse_translation($category);  ?>
                        <option value="<?php echo e($category->id); ?>"
                            <?php if(isset($blog)): ?> <?php $__currentLoopData = $blog->blogCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blogCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                  <?php echo e($blogCategory->id == $category->id ? 'selected' : ''); ?>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?>>
                            <?php echo e($categoryTranslations['name'] ?? ($category->name ?? '')); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <span class="text-danger error-text blog_categoryId_err"></span>
            </div>
            <div class="mt-6">
                <label for="blog-content" class="form-label"><?php echo e(translate('Blog Description')); ?> <span
                        class="text-danger">*</span></label>
                <textarea class="summernote form-input" name="description"> <?php echo clean($blog->description ?? ''); ?></textarea>
                <span class="text-danger error-text description_err"></span>
            </div>
        </div>
        <div class="col-span-full md:col-span-5 card">
            <h6 class="leading-none text-xl font-semibold text-heading">
                <?php echo e(translate('Media')); ?>

            </h6>
            <div class="mt-7">
                <p class="text-xs text-gray-500 dark:text-dark-text leading-none font-semibold mb-3">
                    <?php echo e(translate('Image')); ?> <span class="text-danger">*</span>
                </p>

                <div class="preview-zone dropzone-preview">
                    <div class="box box-solid">
                        <div class="box-body flex items-center gap-2 flex-wrap">
                            <?php if(isset($blog) && fileExists('lms/blogs', $blog->thumbnail) == true && $blog->thumbnail != ''): ?>
                                <div class="img-thumb-wrapper">
                                    <img class="img-thumb" width="100"
                                        src="<?php echo e(asset('storage/lms/blogs/' . $blog->thumbnail)); ?>" />
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <?php $__env->startPush('js'); ?>
            <script>
                $('.multipleSelect').select2({
                    placeholder: "<?php echo e(translate('Select Blog Category')); ?>",
                    width: "100%"
                })
            </script>
        <?php $__env->stopPush(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $attributes = $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $component = $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\admin\blog\view.blade.php ENDPATH**/ ?>