JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "60da5b18b4cbfc33030d24dea12cbe10.php"

Full Path: /home2/yvrgircc/public_html/ariseskilltech.com/storage/framework/views/60da5b18b4cbfc33030d24dea12cbe10.php
File size: 7.05 KB
MIME-type: text/x-php
Charset: utf-8

<?php $__env->startPush('title', get_phrase('Add Blog')); ?>
<?php $__env->startPush('meta'); ?><?php $__env->stopPush(); ?>
<?php $__env->startPush('css'); ?>
    
    <link href="<?php echo e(asset('assets/backend/css/bootstrap-tagsinput.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
    <style>
        .image_preview {
            width: 100%;
            height: 200px;
            margin-bottom: 12px;
            border-radius: 8px;
            overflow: hidden
        }

        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    </style>
    <!-- Mani section header and breadcrumb -->
    <div class="ol-card radius-8px">
        <div class="ol-card-body my-3 py-12px px-20px">
            <div class="d-flex align-items-center justify-content-between gap-3 flex-wrap flex-md-nowrap">
                <h4 class="title fs-16px">
                    <i class="fi-rr-settings-sliders me-2"></i>
                    <span><?php echo e(get_phrase('Blog')); ?></span>
                </h4>
                <a href="<?php echo e(route('admin.blogs')); ?>" class="btn ol-btn-outline-secondary d-flex align-items-center cg-10px">
                    <span class="fi-rr-arrow-left"></span>
                    <span><?php echo e(get_phrase('Back')); ?></span>
                </a>
            </div>
        </div>
    </div>


    <div class="row ">
        <div class="col-md-8">
            <div class="ol-card p-4">
                <div class="ol-card-body">
                    <form action="<?php echo e(route('admin.blog.store')); ?>" method="post" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <div class="fpb-7 mb-3">
                            <label class="form-label ol-form-label" for="title"><?php echo e(get_phrase('Title')); ?></label>
                            <input type="text" class="form-control ol-form-control" name="title" id="title"
                                placeholder="<?php echo e(get_phrase('Enter blog title')); ?>" required>
                        </div>

                        <div class="fpb-7 mb-3">
                            <label class="form-label ol-form-label" for="blog_category_id"><?php echo e(get_phrase('Category')); ?></label>
                            <select class="form-control ol-form-control ol-select2" data-toggle="select2" name="category_id"
                                id="blog_category_id" required>
                                <option value=""><?php echo e(get_phrase('Select a category')); ?></option>
                                <?php $__currentLoopData = $category; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($row->id); ?>"><?php echo e($row->title); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>

                        <div class="fpb-7 mb-3">
                            <label class="form-label ol-form-label" for="keywords"><?php echo e(get_phrase('Keywords')); ?></label>
                            <input type="text" name="keywords" class="tagify ol-form-control w-100" data-role="tagsinput">
                            <small class="text-muted"><?php echo e(get_phrase('Writing your keyword and hit htw enter button')); ?></small>
                        </div>

                        <div class="fpb-7 mb-3">
                            <label class="form-label ol-form-label" for="summernote-basic"><?php echo e(get_phrase('Description')); ?></label>
                            <textarea name="description" class="form-control ol-form-control text_editor"></textarea>
                        </div>

                        <div class="row">
                            <div class="col-md-6 fpb-7">
                                <label class="form-label ol-form-label" for="banner"><?php echo e(get_phrase('Blog banner')); ?></label>
                                <div class="image_preview">
                                    <img src="<?php echo e(get_image()); ?>" id="preview_banner" alt="blog-banner">
                                </div>
                                <input type="file" name="banner" id="banner" class="form-control image-upload" accept="image/*">
                            </div>

                            <div class="col-md-6 fpb-7 ">
                                <label class="form-label ol-form-label" for="thumbnail"><?php echo e(get_phrase('Blog thumbnail')); ?></label>
                                <div class="image_preview">
                                    <img src="<?php echo e(get_image()); ?>" id="preview_thumbnail" alt="blog-thumbnail">
                                </div>
                                <input type="file" name="thumbnail" id="thumbnail" class="form-control image-upload" accept="image/*">
                            </div>
                        </div>

                        <div class="fpb-7 mb-3 mt-3">
                            <label class="form-label ol-form-label"><?php echo e(get_phrase('Would you like to designate it as popular?')); ?></label>

                            <div class="d-flex gap-4">
                                <div class="d-flex align-items-center gap-2">
                                    <input type="radio" id="mark_yes" value="1" name="is_popular">
                                    <label for="mark_yes"><?php echo e(get_phrase('Yes')); ?></label>
                                </div>

                                <div class="d-flex align-items-center gap-2">
                                    <input type="radio" id="mark_no" value="0" name="is_popular" checked>
                                    <label for="mark_no"><?php echo e(get_phrase('No')); ?></label>
                                </div>
                            </div>
                        </div>

                        <div class="fpb-7 mb-3">
                            <button type="submit" class="ol-btn-primary"><?php echo e(get_phrase('Add blog')); ?></button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
    <script>
        "use strict";
        $(function() {
            $('#banner, #thumbnail').change(function(e) {
                e.preventDefault();

                var img_type = $(this).attr('id');
                var x = URL.createObjectURL(event.target.files[0]);
                $('#preview_' + img_type).attr('src', x);
            });
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\Arise\resources\views/admin/blog/create.blade.php ENDPATH**/ ?>