|
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/leadai/leadai.co.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<style>
.profile-pic {
width: 150px;
height: 150px;
display: inline-block;
border: #ccc 1px solid;
padding: 1px;
}
.file-upload {
display: none;
}
img {
max-width: 100%;
height: auto;
}
.p-image {
top: 120px;
left: 58px;
color: #666666;
transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
}
.p-image:hover {
transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
}
.upload-button {
font-size: 1.2em;
}
.upload-button:hover {
transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
color: #999;
}
</style>
<!-- begin::main content -->
<main class="main-content">
<div class="container">
<!-- begin::page header -->
<div class="page-header">
<h3>Edit Notification</h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>"><?php echo e(__('message.dashboard')); ?></a></li>
<li class="breadcrumb-item"><a href="<?php echo e(asset('notification')); ?>"><?php echo e(__('message.notification')); ?></a></li>
<li class="breadcrumb-item active" aria-current="page"><?php echo e(__('message.add')); ?></li>
</ol>
</nav>
</div>
<!-- end::page header -->
<?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; ?>
<?php if(count($errors) > 0): ?>
<?php $__currentLoopData = $errors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo e($error); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<form class="needs-validation" enctype="multipart/form-data" method="POST" action="<?php echo e(asset('update-notification')); ?>" novalidate enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<input type="hidden" value="<?php echo e($notification->id); ?>" name="notification_id">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<a href="<?php echo e(asset('notification')); ?>"
class="btn btn-primary pull-right text-white waves-effect waves-button waves-light"><i
class="fa fa-list"></i> <?php echo e(__('message.notification')); ?> <?php echo e(__('message.list')); ?></a>
<h6 class="card-title"><?php echo e(__('message.notification')); ?> <?php echo e(__('message.information')); ?></h6>
<div class="form-row">
<div class="col-md-6">
<div class="col-md-12 mb-3">
<label for="heading">Title<span class="text-danger">*</span></label>
<input type="text" name="title" class="form-control <?php echo e($errors->has('heading') ? 'is-invalid' : ''); ?>" value="<?php echo e($notification->title); ?>">
<?php if($errors->has('title')): ?>
<div class="invalid-feedback">
<?php echo e($errors->first('title')); ?>
</div>
<?php endif; ?>
</div>
<div class="col-md-12 mb-3">
<label for="heading">Sub Title</label>
<input type="text" name="subtitle" value="<?php echo e($notification->subtitle); ?>" class="form-control <?php echo e($errors->has('heading') ? 'is-invalid' : ''); ?>">
<?php if($errors->has('heading')): ?>
<div class="invalid-feedback">
<?php echo e($errors->first('heading')); ?>
</div>
<?php endif; ?>
</div>
<div class="col-md-12 mb-3">
<label for="description"><?php echo e(__('message.notification')); ?><span class="text-danger">*</span></label>
<textarea name="description" class="form-control <?php echo e($errors->has('notification') ? 'is-invalid' : ''); ?>" id="notification"
id="description"><?php echo e($notification->description); ?></textarea>
<?php if($errors->has('description')): ?>
<div class="invalid-feedback">
<?php echo e($errors->first('description')); ?>
</div>
<?php endif; ?>
</div>
<div class="col-md-12 mb-3">
<label for="image">Image (optional)</label>
<input type="file" class="form-control" accept="image/*" name="image" >
<?php if($errors->has('image')): ?>
<div class="invalid-feedback">
<?php echo e($errors->first('image')); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<hr>
<button class="btn btn-success btn-uppercase waves-effect waves-button waves-light"
type="submit">
<i class="ti-check-box m-r-5"></i><?php echo e(__('message.save')); ?>
</button>
</div>
</div>
</div>
</div>
</form>
</div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<script src="<?php echo e(asset('public/admin/vendors/input-mask/jquery.mask.js')); ?>"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<script>
// Get Section
$("#class").on('change', function() {
var URL = "<?php echo e(asset('admission/get-section/')); ?>" + "/" + $(this).val();
$.ajax({
type: "GET",
url: URL,
dataType: "JSON",
success: function(data) {
$("#section").empty();
$("#section").select2({
data: data
});
$("#section").val("<?php echo e(Request::get('section')); ?>").trigger('change');
}
});
});
$('#type').on('change',function(){
var type = $(this).val();
if(type == 'for_all')
{
$('.class').css('display','none')
$('.section').css('display','none')
}else if(type == 'for_class')
{
$('.class').css('display','block')
$('.section').css('display','none')
}else if(type == 'for_section')
{
$('.class').css('display','block')
$('.section').css('display','block')
}
// alert(type);
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\visitor_management\resources\views/notification/edit.blade.php ENDPATH**/ ?>