Viewing file: 4b58b7f1779a6241fc035b6ebe43e6b6.php (5.69 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('content'); ?>
<div class="container-fluid">
<!-- Page Heading -->
<div class="card mb-4">
<div class="card-body">
<div class="d-sm-flex align-items-center justify-content-between">
<h3 class=" mb-0 bc-title"><b><?php echo e(__('Update Event')); ?></b> </h3>
<a class="btn btn-primary btn-sm" href="<?php echo e(route('back.post.index')); ?>"><i class="fas fa-chevron-left"></i> <?php echo e(__('Back')); ?></a>
</div>
</div>
</div>
<!-- Form -->
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12">
<div class="card o-hidden border-0 shadow-lg">
<div class="card-body ">
<!-- Nested Row within Card Body -->
<div class="row justify-content-center">
<div class="col-lg-12">
<form class="admin-form" action="<?php echo e(route('back.post.update',$post->id)); ?>"
method="POST" enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<?php echo method_field('PUT'); ?>
<?php echo $__env->make('alerts.alerts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="form-group position-relative ">
<label for="title"><?php echo e(__('Image')); ?> *</label>
<label class="file">
<input type="file" name="photo" id="file"
aria-label="File browser example" >
<span class="file-custom text-left"><?php echo e(__('Upload Images...')); ?></span>
</label>
</div>
<div class="form-group">
<label for="title"><?php echo e(__('Title')); ?> *</label>
<input type="text" name="title" class="form-control" id="title"
placeholder="<?php echo e(__('Enter Title')); ?>" value="<?php echo e($post->title); ?>" >
</div>
<div class="form-group">
<label for="category_id"><?php echo e(__('Select Category')); ?> *</label>
<select name="category_id" id="category_id" class="form-control" >
<option value="" selected disabled><?php echo e(__('Select Category')); ?></option>
<?php $__currentLoopData = DB::table('categories')->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($category->id); ?>" <?php echo e($post->category_id == $category->id ? 'selected' : ''); ?> ><?php echo e($category->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="form-group">
<label for="type"><?php echo e(__('Type')); ?> *</label>
<select type="text" name="type" class="form-control" id="type"
value="<?php echo e(old('title')); ?>" >
<option value="promo " <?php echo e($post->type == 'promo' ? 'selected' : ''); ?>><?php echo e(__('Promo ')); ?></option>
<option value="events" <?php echo e($post->type == 'events' ? 'selected' : ''); ?>><?php echo e(__('Events')); ?></option>
<option value="esports" <?php echo e($post->type == 'esports' ? 'selected' : ''); ?>><?php echo e(__('Esports')); ?></option>
</select>
</div>
<div class="form-group">
<label for="details"><?php echo e(__('Details')); ?> *</label>
<textarea name="details" id="details" class="form-control text-editor" rows="5"
placeholder="<?php echo e(__('Enter Details')); ?>"
><?php echo e($post->details); ?></textarea>
</div>
<div class="form-group">
<button type="submit"
class="btn btn-secondary "><?php echo e(__('Submit')); ?></button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="confirm-deleteModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"><?php echo e(__('Confirm Delete?')); ?></h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<!-- Modal Body -->
<div class="modal-body">
<?php echo e(__('You are going to delete this image from gallery.')); ?> <?php echo e(__('Do you want to delete it?')); ?>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__('Cancel')); ?></button>
<form action="" class="d-inline btn-ok" method="POST">
<?php echo csrf_field(); ?>
<?php echo method_field('DELETE'); ?>
<button type="submit" class="btn btn-danger"><?php echo e(__('Delete')); ?></button>
</form>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master.back', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\PicTech\unipin\unipin\core\resources\views/back/post/edit.blade.php ENDPATH**/ ?>
|