Current File : //home/tradevaly/www/storage/framework/views/a43afa1e161ffa4a591931081375a47c5ba360ee.php |
<?php $__env->startSection('title'); ?> Products List <?php $__env->stopSection(); ?>
<?php $__env->startSection('css'); ?>
<!-- DataTables -->
<style>
nav.flex.items-center.justify-between {
display: none;
}
</style>
<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'); ?> Company Brochures@endslot
<?php echo $__env->renderComponent(); ?>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="row mb-2">
<div class="col-sm-4"><h2>Brochures</h2></div>
<div class="col-sm-8"> <div class="text-sm-end">
<a href="<?php echo e(url('user/pdf/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</a>
</div></div><!-- end col-->
</div>
<div class="table-responsive">
<table class="table" id="datatable-buttons">
<thead>
<tr>
<th class="text-center">#</th>
<th><?php echo e(translate("Details")); ?></th>
<th><?php echo e(translate("Company")); ?></th>
<th><?php echo e(translate("Action")); ?></th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
?>
<?php $__currentLoopData = $pdfs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pdf): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<?php $i++; ?>
<td class="text-center"><?php echo e($i); ?></td>
<td><a href="<?php echo e(asset('storage/images/user/pdf/'.$pdf['image'])); ?>">View Pdf</a></td>
<td><?php echo e($pdf->name); ?></td>
<td class="td-actions text-right">
<a href="<?php echo e(url('user/pdf/delete',$pdf->id)); ?>" name="category" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
<i class="fas fa-times"></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({
processing: true,
dom: 'Bfrtip',
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('user.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/user/pages/pdf.blade.php ENDPATH**/ ?>