Path : /var/www/html/phkaynews-v2/storage/framework/views/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/phkaynews-v2/storage/framework/views/afc5ba04c868873be9d8d91e09e176a7a3e38d3b.php |
<?php $__env->startSection('title','Admin Posts Management'); ?> <?php $__env->startSection('content'); ?> <div class="row"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.content-header','data' => ['title' => 'Post']]); ?> <?php $component->withName('content-header'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php $component->withAttributes(['title' => 'Post']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <div class="col-12"> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.card','data' => []]); ?> <?php $component->withName('card'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php $component->withAttributes([]); ?> <div class="row mb-2"> <div class="col-sm-4"> <div class="search-box mr-2 mb-2"> <form action="<?php echo e(route('admin.posts.search')); ?>" method="get" class="d-flex"> <div class="position-relative"> <input type="text" name="q" <?php if(isset($q)): ?> value="<?php echo e($q); ?>" <?php endif; ?> class="form-control" placeholder="Search..."> <i class="bx bx-search-alt search-icon"></i> </div> <button type="submit" class="btn btn-primary rounded-pill waves-effect waves-light d-flex"> <i class="bx bx-search font-size-16 align-middle mr-2"></i> search </button> </form> </div> </div> <div class="col-sm-8"> <div class="text-sm-right"> <a href="<?php echo e(route('admin.posts.create')); ?>" wire:click="formOpen" class="btn btn-success btn-rounded waves-effect waves-light mb-2 mr-2"> <i class="mdi mdi-plus mr-1"></i> Add New </a> </div> </div> </div> <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?> <?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.table.index','data' => []]); ?> <?php $component->withName('table'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php $component->withAttributes([]); ?> <thead class="thead-light"> <tr> <th>Thumbnail</th> <th>Title</th> <th>Post By</th> <th>Views</th> <th>Public</th> <th>Created At</th> <th>Action</th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td class="td-pointer" x-data @click=" window.location.href ='<?php echo e(route("admin.posts.edit",$post->id)); ?>' " > <img src="<?php echo e(!empty($post->feature_image) ? asset($post->feature_image) : asset('admin/images/no-image.jpg')); ?>" alt="thumbnail" class="rounded avatar-sm my-object-fit"> </td> <td class="text-left td-pointer" x-data @click=" window.location.href ='<?php echo e(route("admin.posts.edit",$post->id)); ?>' " > <?php echo e(Str::limit($post->title, 50, '...')); ?> </td> <td class="text-center td-pointer" x-data @click=" window.location.href ='<?php echo e(route("admin.posts.edit",$post->id)); ?>' " > <?php echo e($post->user->name); ?> </td> <td class="text-center td-pointer" x-data @click=" window.location.href ='<?php echo e(route("admin.posts.edit",$post->id)); ?>' " > <span class="badge badge-pill badge-soft-info font-size-12"><?php echo e($post->view); ?></span> </td> <td class="text-center td-pointer" x-data @click=" window.location.href ='<?php echo e(route("admin.posts.edit",$post->id)); ?>' " > <?php if($post->public): ?> <span class="badge badge-pill badge-soft-success font-size-12">Publiced</span> <?php else: ?> <span class="badge badge-pill badge-soft-danger font-size-12">Private</span> <?php endif; ?> </td> <td class="td-pointer" x-data @click=" window.location.href ='<?php echo e(route("admin.posts.edit",$post->id)); ?>' " > <?php echo e($post->created_at ? date_format($post->created_at, 'd-M-Y H:i a') : 'Null'); ?> </td> <td> <a href="<?php echo e(route('admin.posts.edit',$post->id)); ?>" class="mr-3 text-primary" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="mdi mdi-pencil font-size-18"></i> </a> <a href="#" class="text-danger" x-data @click=" Swal.fire({ title: 'Are you sure?', text: 'You won\'t be able to revert this!', icon: 'warning', confirmButtonText: 'Yes, delete it!', showCancelButton: !0, cancelButtonText: 'No, cancel!', confirmButtonClass: 'btn btn-success mt-2', cancelButtonClass: 'btn btn-danger ml-2 mt-2', buttonsStyling: !1, }).then((result) => { if (result.value) { document.getElementById('frmDelete-<?php echo e($post->id); ?>').submit(); } }) " data-toggle="tooltip" data-placement="top" title="" data-original-title="Delete" > <i class="mdi mdi-close font-size-18"></i> </a> <form id="frmDelete-<?php echo e($post->id); ?>" action="<?php echo e(route('admin.posts.destroy',$post->id)); ?>" method="POST" class="d-none"> <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="15" class="py-2 text-center"> <span class="badge badge-pill badge-soft-danger font-size-12">មិនមានទិន្នន័យ</span> </td> </tr> <?php endif; ?> </tbody> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> <?php echo e($posts->links()); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?> <?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?> <?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?> <?php endif; ?> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/phkaynews-v2/resources/views/admin/post/postList.blade.php ENDPATH**/ ?>