| Path : /var/www/html/phkaynews-v2/storage/framework/views/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/phkaynews-v2/storage/framework/views/418fe1ae2d4f48e7d5fae8817cbc14b10662e2fa.php |
<?php if(isset($post)): ?>
<?php $__env->startSection('title','Admin Edit Posts'); ?>
<?php else: ?>
<?php $__env->startSection('title','Admin Create Posts'); ?>
<?php endif; ?>
<?php $__env->startPush('styles'); ?>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.content-header','data' => ['title' => isset($post)?'Edit Post':'Create Post']]); ?>
<?php $component->withName('content-header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($post)?'Edit Post':'Create Post')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<div class="col-12">
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.card','data' => []]); ?>
<?php $component->withName('card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<form class="custom-validation" novalidate autocomplete method="POST"
<?php if(isset($post)): ?>
action="<?php echo e(route('admin.posts.update', $post)); ?>"
<?php else: ?>
action="<?php echo e(route('admin.posts.store')); ?>"
<?php endif; ?>
enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<?php if(isset($post)): ?>
<?php echo method_field('PUT'); ?>
<?php endif; ?>
<button type="submit" class="btn btn-success rounded-pill w-md float-right"><i class="bx bx-check-shield"></i> Save</button>
<a href="<?php echo e(route('admin.posts.index')); ?>" class="btn btn-warning rounded-pill w-md"><i class="bx bx-left-arrow-alt"></i> Back</a>
<div class="row flex-column-reverse flex-md-row">
<div class="col-md-8 align-self-center">
<div class="form-group row mb-4">
<label for="title" class="col-sm-2 col-form-label">Title<sup class="text-danger">*</sup></label>
<div class="col-sm-10">
<input type="text" name="title" <?php if(isset($post)): ?> value="<?php echo e($post->title); ?>" <?php endif; ?> class="form-control <?php $__errorArgs = ['title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> parsley-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="title" placeholder="Enter title..." required>
<?php $__errorArgs = ['title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<ul class="parsley-errors-list filled" id="parsley-id-5" aria-hidden="false">
<li class="parsley-required"><?php echo e($message); ?></li>
</ul>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="form-group row mb-4">
<label for="keyword" class="col-sm-2 col-form-label">Keyword<sup class="text-danger">*</sup></label>
<div class="col-sm-10">
<input type="text" name="keyword" <?php if(isset($post)): ?> value="<?php echo e($post->keyword); ?>" <?php endif; ?> class="form-control <?php $__errorArgs = ['keyword'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> parsley-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="keyword" placeholder="Enter keyword..." required>
<?php $__errorArgs = ['keyword'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<ul class="parsley-errors-list filled" id="parsley-id-5" aria-hidden="false">
<li class="parsley-required"><?php echo e($message); ?></li>
</ul>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="form-group row mb-4">
<label for="released" class="col-sm-2 col-form-label">Category<sup class="text-danger">*</sup></label>
<div class="col-sm-10">
<?php if(isset($post)): ?>
<?php
$existing_categories = $post->post_categories->pluck('category_id')->toArray();
?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.select2','data' => ['name' => 'category_ids[]']]); ?>
<?php $component->withName('select2'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['name' => 'category_ids[]']); ?>
<?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($category->id); ?>"
<?php if(isset($post)): ?>
<?php if(in_array($category->id, $existing_categories)): ?>
selected
<?php endif; ?>
<?php endif; ?>
><?php echo e($category->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php $__errorArgs = ['category_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<ul class="parsley-errors-list filled" id="parsley-id-5" aria-hidden="false">
<li class="parsley-required"><?php echo e($message); ?></li>
</ul>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="form-group row mb-4">
<div class="col-sm-10 offset-2">
<div class="custom-control custom-checkbox mt-2">
<input type="checkbox" class="custom-control-input" name="public" id="public" <?php if(isset($post)): ?> <?php echo e($post->public?'checked':''); ?> <?php else: ?> checked <?php endif; ?>>
<label class="custom-control-label" for="public">Public</label>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="position-relative">
<label class="d-block text-center">Thumbnail(1280x720px)<sup class="text-danger">*</sup></label>
<div class="d-flex w-50 m-auto">
<img class="img-thumbnail mw-50 img-clickable feature-img feature-image <?php $__errorArgs = ['feature_image'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> border-danger <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
src="<?php echo e(isset($post)?asset($post->feature_image):asset('images/no-image.jpg')); ?>" alt="No Image" />
<input type="file" id="feature_image" class="custom-file-input d-none feature-image" name="feature_image" />
</div>
</div>
</div>
<div class="col-12">
<div class="form-group">
<label for="desc" class="col-sm-2 col-form-label">Description </label>
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.ckeditor','data' => ['name' => 'description']]); ?>
<?php $component->withName('ckeditor'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['name' => 'description']); ?>
<?php if(isset($post)): ?>
<?php echo e($post->description); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
</div>
</div>
</div>
<button type="submit" class="btn btn-success rounded-pill w-md float-right"><i class="bx bx-check-shield"></i> Save</button>
<a href="<?php echo e(route('admin.posts.index')); ?>" class="btn btn-warning rounded-pill w-md"><i class="bx bx-left-arrow-alt"></i> Back</a>
</form>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/phkaynews-v2/resources/views/admin/post/postForm.blade.php ENDPATH**/ ?>