|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/easysfm.edukrypt.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<!-- begin::main content -->
<main class="main-content">
<div class="container">
<!-- begin::page header -->
<div class="page-header">
<h3>Mapping Ebook List</h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo e(asset('dashboard')); ?>">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page">Mapping Ebook List</li>
</ol>
</nav>
</div>
<!-- end::page header -->
<div class="card">
<div class="card-header">
<form action="" method="GET">
<div class="form-group">
<input type="text" style="width: 300px;" class="form-control pull-left" name="query"
placeholder="Search here....." value="<?php echo e(request()->input('query')); ?>">
<span class="text-danger"><?php $__errorArgs = ['query'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></span>
</div>
<div class="form-group">
<button type="submit" class="btn text-white btn-primary pull-right">
<i class="fa fa-search"></i> Search
</button>
<a href="<?php echo e(asset('admin/ebook-list')); ?>"
class="btn btn-primary text-white pull-right m-r-10">
<i class="fa fa-refresh"></i> Reset
</a>
</div>
</form>
</div>
<div class="card-body">
<?php
$permission = App\Helpers\PermissionActivity::getPermissionByAdminId(session('loggedIn')['id'], 15);
?>
<?php if($permission == 'delete'): ?>
<a href="javascript:;" id="delete_videos" class="btn btn-danger text-white">
<i class="fa fa-trash-o"></i> Multiple Delete</a>
<a href="<?php echo e(asset('admin/add-mapping-ebook')); ?>"
class="form-group btn btn-primary text-white pull-right">
<i class="fa fa-book"></i> Mapping Ebook
</a>
<?php endif; ?>
<div class="table-responsive">
<?php if(isset($products)): ?>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th><input type="checkbox" name="multialldelete" id="multialldelete" /></th>
<th>Id</th>
<th>Name</th>
<th>Public</th>
<th>Type</th>
<th>Path</th>
<th>Etag</th>
<th>size</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php if(!empty($products)): ?>
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<input class="checkBoxClass" type="checkbox"
value="<?php echo e($product->etag); ?>" name="multidelete[]" />
</td>
<td><?php echo e($product->id); ?></td>
<td><?php echo e($product->filename); ?></td>
<td><?php echo e($product->public_name); ?></td>
<td><?php echo e($product->type); ?></td>
<td><?php echo e($product->path); ?></td>
<td><?php echo e($product->etag); ?></td>
<td><?php echo e($product->size); ?></td>
<td>
<?php
$permission = App\Helpers\PermissionActivity::getPermissionByAdminId(session('loggedIn')['id'], 15);
?>
<?php if($permission == 'read'): ?>
<a href="<?php echo e(asset('admin/view-product/' . $product->id)); ?>"><i
class="fa fa-eye text-primary"></i></a>
<?php endif; ?>
<?php if($permission == 'write'): ?>
<a href="<?php echo e(asset('admin/view-product/' . $product->id)); ?>"><i
class="fa fa-eye text-primary"></i></a>
<a href="<?php echo e(asset('admin/edit-product/' . $product->id)); ?>"><i
class="fa fa-edit text-success"></i></a>
<?php endif; ?>
<?php if($permission == 'delete'): ?>
<a href="<?php echo e(asset('admin/delete-mapping-ebook/' . $product->etag)); ?>"
class="delete-confirm"><i
class="fa fa-trash text-danger"></i></a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<h1>No Record Found!!</h1>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
</div>
<div class="pagination-block">
<?php if(isset($_GET['query'])): ?>
<?php echo e($products->appends(['query' => $_GET['query']])->links('admin.includes.paginationlinks')); ?>
<?php else: ?>
<?php echo e($products->links('admin.includes.paginationlinks')); ?>
<?php endif; ?>
<label>Total Record Found- <?php echo count($products); ?></label>
</div>
</div>
</div>
</div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<!-- begin::dataTable -->
<script src="<?php echo e(asset('public/admin/js/examples/datatable.js')); ?>"></script>
<script>
// Select ALL
$('#multialldelete').change(function() {
if ($(this).prop('checked')) {
$(".checkBoxClass").prop('checked', true);
} else {
$(".checkBoxClass").prop('checked', false);
}
//console.log($(".checkBoxClass").val());
});
// Multiple Delete
$('#delete_videos').click(function() {
var checked = []
$("input[name='multidelete[]']:checked").each(function() {
checked.push($(this).val());
});
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
type: "POST",
data: {
'ebookids': checked,
},
url: "<?php echo e(asset('admin/delete-mapping-ebook-all')); ?>",
beforeSend: function() {
$('#delete_videos').html(
'<i class="fa fa-spinner fa-pulse"></i> Please Wait....');
},
success: function(result) {
$('#delete_videos').html('<i class="fa fa-trash-o"></i> Multiple Delete');
location.reload();
}
});
});
$('#sync_video').click(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
var foldername = $(this).data("foldername");
$.ajax({
type: "GET",
data: {
'foldername': foldername,
},
url: "<?php echo e(asset('admin/ebooklistobjects')); ?>",
beforeSend: function() {
$('#sync_video').html(
'<i class="fa fa-spinner fa-pulse"></i> Please Wait....');
},
success: function(result) {
$('#sync_video').html('<i class="fa fa-refresh"></i> Sync Ebooks');
location.reload();
}
});
});
</script>
<!-- end::dataTable -->
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/easysfm.edukrypt.in/resources/views/admin/ebook/map-pdf-list.blade.php ENDPATH**/ ?>