관리-도구
편집 파일: 067780438fb72c11078fabdd03c13855168a1756.php
<?php $__env->startSection('content'); ?> <!-- ============================================================== --> <div class="page-wrapper"> <!-- ============================================================== --> <!-- Container fluid --> <!-- ============================================================== --> <div class="container-fluid"> <!-- ============================================================== --> <!-- Bread crumb and right sidebar toggle --> <!-- ============================================================== --> <div class="row page-titles"> <div class="col-md-5 align-self-center"> <h4 class="text-themecolor"> </h4> </div> <div class="col-md-7 align-self-center text-end"> <div class="d-flex justify-content-end align-items-center"> <ol class="breadcrumb justify-content-end"> <li class="breadcrumb-item"><a href="<?php echo e(url('/adminpan')); ?>">Home</a></li> <li class="breadcrumb-item active">Blogs</li> </ol> <form action="<?php echo e(route('createBlog')); ?>"> <button type="submit" class="btn btn-info d-none d-lg-block m-l-15 text-white"><i class="fa fa-plus-circle"></i> Create New</button> </form> </div> </div> </div> <!-- ============================================================== --> <!-- End Bread crumb and right sidebar toggle --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- Start Page Content --> <!-- ============================================================== --> <div class="row"> <!-- column --> <div class="col-12"> <div class="card"> <div class="card-body"> <h4 class="card-title"> Blogs Table </h4> <?php if(Session::has('success')): ?> <div class="alert alert-success alert-dismissible fade show" role="alert"> <?php echo e(Session::get('success')); ?> <!--<button type="button" class="close" data-dismiss="alert" aria-label="Close">--> <!-- <span aria-hidden="true">×</span>--> <!-- </button>--> </div> <?php elseif(Session::has('error')): ?> <div class="alert alert-danger alert-dismissible fade show" role="alert"> <?php echo e(Session::get('error')); ?> <!--<button type="button" class="close" data-dismiss="alert" aria-label="Close">--> <!-- <span aria-hidden="true">×</span>--> <!--</button>--> </div> <?php endif; ?> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>Title</th> <th>Content</th> <th>Status</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <tbody> <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($blog->title); ?></td> <td><?php echo $blog->content; ?></td> <?php $status = ['Not Active','Active']; $isActive = $blog->is_active; ?> <td> <?php echo e($status[$isActive]); ?> </td> <td> <form action="<?php echo e(route('editBlog',$blog->id)); ?>"><button class="btn btn-primary">Edit</button></form> </td> <td> <form action="<?php echo e(route('deleteBlog',$blog->id)); ?>"> <button class="btn btn-danger">Delete</button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </tbody> </table> <?php echo $data->links(); ?> </div> </div> </div> </div> <!-- column --> </div> <!-- ============================================================== --> <!-- End PAge Content --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- Right sidebar --> <!-- ============================================================== --> <!-- .right-sidebar --> <!-- ============================================================== --> <!-- End Right sidebar --> <!-- ============================================================== --> </div> <!-- ============================================================== --> <!-- End Container fluid --> <!-- ============================================================== --> </div> <!-- ============================================================== --> <!-- End Page wrapper --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- footer --> <!-- ============================================================== --> <!-- End footer --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- End Wrapper --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- All Jquery --> <!-- ============================================================== --> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/customdevdevopdi/findjobs.customdev.devopdigital.com/resources/views/backend/blogs/index.blade.php ENDPATH**/ ?>