OwlCyberSecurity - MANAGER
Edit File: 1f081a0019d3e8170e9e2d9fb7d1c47d.php
<?php $__env->startSection('content'); ?> <style> .error_div { background-color: #ffc8c8; border-radius: 4px; padding: 0.4rem; padding-left: 1rem; color: #f11a1a; border: 1px solid #ff2a2a; } .success_div { background-color: #aedcaf; border-radius: 4px; padding: 0.4rem; padding-left: 1rem; color: #1f6d26; border: 1px solid #248526; } </style> <div class="row p-2"> <div class="col-12"> <h3>Add Gallery</h3> </div> </div> <div class="row p-2"> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="row"> <?php if(!empty($errors->all())): ?> <div class="col-12 error_div"> <?php echo e($errors->first()); ?> </div> <?php endif; ?> <?php if(session()->has('message')): ?> <div class="col-12 error_div"> <?php echo e(session()->get('message')); ?> </div> <?php endif; ?> <?php if(session()->has('success')): ?> <div class="col-12 success_div"> <?php echo e(session()->get('success')); ?> </div> <?php endif; ?> </div> <form action="<?php echo e(route('add_gallery.add_gallery')); ?>" method="POST" autocomplete="off" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12"> <div class="form-group"> <label for="title" class="form-label">Title</label> <input type="text" name="title" id="title" class="form-control" autofocus value="<?php echo e(old('title') ? old('title') : ''); ?>"> </div> </div> <div class="col-lg-12 col-md-12 col-sm-12"> <div class="form-group"> <label for="image" class="form-label">Image</label> <div> <input type="file" name="image" id="image"> </div> <small>(Max image size: 1 MB; Image types allowed: jpg, jpeg, png.)</small> </div> <div class="form-group"> <button type="submit" class="custom-blue-btn width-5-rem ">Add</button> <a href="<?php echo e(route('gallery_list.view_gallery')); ?>"><button type="button" class="custom-grey-btn width-5-rem">Cancel</button></a> </div> </div> </div> </form> </div> </div> </div> </div> <script> // error and success div timouts setTimeout(() => { $('.error_div').fadeOut('slow'); $('.success_div').fadeOut('slow'); }, 3000); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('master.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/makmfewe/dingomo.com/resources/views/gallery/add.blade.php ENDPATH**/ ?>