Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
painelkaickaviella.meumercado.app
/
storage
/
framework
/
views
/
Editing: e86f73f1fc7ec02729ef3386e526fdbd47d61a88.php
<?php $__env->startSection('title', translate('Add new notification')); ?> <?php $__env->startPush('css_or_js'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row align-items-center"> <div class="col-sm mb-2 mb-sm-0"> <h1 class="page-header-title"><i class="tio-notifications"></i> <?php echo e(\App\CentralLogics\translate('notification')); ?></h1> </div> </div> </div> <!-- End Page Header --> <div class="row gx-2 gx-lg-3"> <div class="col-sm-12 col-lg-12 mb-3 mb-lg-2"> <form action="<?php echo e(route('admin.notification.store')); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('title')); ?></label> <input type="text" name="title" class="form-control" placeholder="<?php echo e(translate('New notification')); ?>" required maxlength="100"> </div> <div class="form-group"> <label class="input-label" for="exampleFormControlInput1"><?php echo e(\App\CentralLogics\translate('description')); ?></label> <textarea name="description" class="form-control" required maxlength="255"></textarea> </div> <div class="form-group" style="display: none"> <label><?php echo e(\App\CentralLogics\translate('image')); ?></label><small style="color: red"> ( <?php echo e(\App\CentralLogics\translate('ratio')); ?> 3:1 )</small> <div class="custom-file"> <input type="file" name="image" id="customFileEg1" class="custom-file-input" accept=".jpg, .png, .jpeg, .gif, .bmp, .tif, .tiff|image/*"> <label class="custom-file-label" for="customFileEg1"><?php echo e(\App\CentralLogics\translate('choose')); ?> <?php echo e(\App\CentralLogics\translate('file')); ?></label> </div> <div class="text-center mt-3"> <img style="width: 30%;border: 1px solid; border-radius: 10px;" id="viewer" src="<?php echo e(asset('public/assets/admin/img/900x400/img1.jpg')); ?>" alt="image"/> </div> </div> <button type="submit" class="btn btn-primary"><?php echo e(\App\CentralLogics\translate('send')); ?> <?php echo e(\App\CentralLogics\translate('notification')); ?></button> </form> </div> <div class="col-sm-12 col-lg-12 mb-3 mb-lg-2 mt-2"> <div class="card"> <div class="card-header"> <h5 class="card-header-title"><?php echo e(\App\CentralLogics\translate('Notification Table')); ?> <span class="card-header-title text-primary mx-1">(<?php echo e($notifications->total()); ?>)</span></h5> </div> <!-- Table --> <div class="table-responsive datatable-custom"> <table class="table table-borderless table-thead-bordered table-nowrap table-align-middle card-table"> <thead class="thead-light"> <tr> <th><?php echo e(\App\CentralLogics\translate('#')); ?></th> <th style="width: 50%"><?php echo e(\App\CentralLogics\translate('title')); ?></th> <th><?php echo e(\App\CentralLogics\translate('description')); ?></th> <th><?php echo e(\App\CentralLogics\translate('status')); ?></th> <th style="width: 10%"><?php echo e(\App\CentralLogics\translate('action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($notifications->firstitem()+$key); ?></td> <td> <span class="d-block font-size-sm text-body"> <?php echo e(substr($notification['title'],0,25)); ?> <?php echo e(strlen($notification['title'])>25?'...':''); ?> </span> </td> <td> <?php echo e(substr($notification['description'],0,25)); ?> <?php echo e(strlen($notification['description'])>25?'...':''); ?> </td> <td> <?php if($notification['status']==1): ?> <div style="padding: 10px;border: 1px solid;cursor: pointer" onclick="location.href='<?php echo e(route('admin.notification.status',[$notification['id'],0])); ?>'"> <span class="legend-indicator bg-success"></span><?php echo e(\App\CentralLogics\translate('active')); ?> </div> <?php else: ?> <div style="padding: 10px;border: 1px solid;cursor: pointer" onclick="location.href='<?php echo e(route('admin.notification.status',[$notification['id'],1])); ?>'"> <span class="legend-indicator bg-danger"></span><?php echo e(\App\CentralLogics\translate('disabled')); ?> </div> <?php endif; ?> </td> <td> <!-- Dropdown --> <div class="dropdown"> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="tio-settings"></i> </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <a class="dropdown-item" href="<?php echo e(route('admin.notification.edit',[$notification['id']])); ?>"><?php echo e(\App\CentralLogics\translate('edit')); ?></a> <a class="dropdown-item" href="javascript:" onclick="$('#notification-<?php echo e($notification['id']); ?>').submit()"><?php echo e(\App\CentralLogics\translate('delete')); ?></a> <form action="<?php echo e(route('admin.notification.delete',[$notification['id']])); ?>" method="post" id="notification-<?php echo e($notification['id']); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('delete'); ?> </form> </div> </div> <!-- End Dropdown --> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <hr> <table> <tfoot> <?php echo $notifications->links(); ?> </tfoot> </table> </div> </div> </div> <!-- End Table --> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script_2'); ?> <script> function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#viewer').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $("#customFileEg1").change(function () { readURL(this); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/meumer25/painelestilopetshop.meupet.app/resources/views/admin-views/notification/index.blade.php ENDPATH**/ ?>
Save
Cancel