Current File : //home/tradevaly/public_html/storage/framework/views/2360adb6e99b38408b0041c4bf92ab97ab908644.php |
<?php $__env->startPush('title'); ?> Banners <?php $__env->stopPush(); ?>
<?php $__env->startSection('css'); ?>
<!-- DataTables -->
<link href="<?php echo e(asset('/assets/libs/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $__env->startComponent('components.breadcrumb'); ?>
<?php $__env->slot('li_1'); ?> Dashboards <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?> Banners <?php $__env->endSlot(); ?>
<?php echo $__env->renderComponent(); ?>
<div class="row">
<div class="col-lg-3">
<div class="card all_banner">
<div class="card-body">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" href="<?php echo e(route('admin.component.banner.index')); ?>">Home Page</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo e(route('admin.component.banner.category')); ?>">Category Page</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo e(route('admin.component.banner.buyers')); ?>">Buyers Page</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo e(route('admin.component.banner.product')); ?>">Product Page</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo e(route('admin.component.banner.company')); ?>">Company Page</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo e(route('admin.component.banner.manufacture')); ?>">Manufacture Page</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo e(route('admin.component.banner.contact')); ?>">Contact Us Page</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-9">
<div class="card ">
<div class="card-body">
<div class="row mb-2">
<div class="col-sm-4">
<h3>Buyers Page Banners</h3>
</div>
<div class="col-sm-8">
<div class="text-sm-end">
<a href="<?php echo e(url('b2b/component/banner/add')); ?>"
class="btn btn-success btn-rounded waves-effect waves-light mb-2 me-2"><i
class="mdi mdi-plus me-1"></i> Add New Banner</a>
<?php echo e(session()->put('page','buyers_page')); ?>
</div>
</div><!-- end col-->
</div>
<div class="table-responsive">
<table id="datatable-buttons" class="table table-bordered dt-responsive nowrap w-100">
<table class="table">
<thead>
<tr>
<th class="text-center">#</th>
<th><?php echo e(translate('Image')); ?></th>
<th><?php echo e(translate('link')); ?></th>
<th><?php echo e(translate('Position')); ?></th>
<th>Status</th>
<th class="text-right"><?php echo e(translate('Actions')); ?></th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
?>
<?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<?php $i++; ?>
<td class="text-center"><?php echo e($i); ?></td>
<td><img style="height: 80px; width:150px; border-radius:10%;" src="<?php echo e(asset('storage/images/admin/banner/'.$banner['image'])); ?>" alt=""></td>
<td width="300px"><?php echo e(Str::limit($banner['link'],70)); ?></td>
<td><?php echo e($banner['position']); ?></td>
<td>
<?php if($banner['status']==0): ?>
<a class="btn btn-info updateBannerStatus" title="Turn off / On" id="banner-<?php echo e($banner->id); ?>" banner_id="<?php echo e($banner->id); ?>" style="color: #fff">
<i class="fas fa-toggle-off"></i>
</a>
<?php else: ?>
<a class="btn btn-info updateBannerStatus" title="Turn off / On" id="banner-<?php echo e($banner->id); ?>" banner_id="<?php echo e($banner->id); ?>" style="color: #fff">
<i class="fas fa-toggle-on"></i>
</a>
<?php endif; ?>
</td>
<td class="td-actions text-right">
<a href="<?php echo e(url('b2b/component/banner/edit',$banner->id)); ?>" class="btn btn-info" title="Edit">
<i class="fas fa-pencil-alt"></i>
</a>
<a href="<?php echo e(url('b2b/component/banner/delete',$banner->id)); ?>" name="banner" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
<i class="fas fa-trash"></i>
</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- end row -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<!-- Required datatable js -->
<script src="<?php echo e(asset('/assets/libs/datatables/datatables.min.js')); ?>"></script>
<script src="<?php echo e(asset('/assets/libs/jszip/jszip.min.js')); ?>"></script>
<script src="<?php echo e(asset('/assets/libs/pdfmake/pdfmake.min.js')); ?>"></script>
<!-- Datatable init js -->
<script type="text/javascript">
$(function () {
$(document).ready(function () {
var table = $('#datatable-buttons').DataTable({
lengthChange: false,
processing: true,
dom: 'Bfrtip',
serverSide: false,
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
$(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/Banner/buyers.blade.php ENDPATH**/ ?>