File: /var/www/ivs.kaunokolegija.lt/laravel/storage/framework/views/b3a10773027786f03e8d15e671ab278f.php
<div class="m-3">
<div class="card">
<div class="card-header">
<?php echo e(trans('global.list')); ?>
</div>
<div class="card-body">
<div class="table-responsive">
<table class=" table table-bordered table-striped table-hover datatable datatable-scientistAppliedScientificPublications">
<thead>
<tr>
<th width="10">
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.id')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.scientist')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.year')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.science_area')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.science_direction')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.title')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.input_time')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.authorship_field')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.page_count')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.publisher')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.isbn')); ?>
</th>
<th>
<?php echo e(trans('cruds.appliedScientificPublication.fields.doi')); ?>
</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $appliedScientificPublications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $appliedScientificPublication): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr data-entry-id="<?php echo e($appliedScientificPublication->id); ?>">
<td>
</td>
<td>
<?php echo e($appliedScientificPublication->id ?? ''); ?>
</td>
<td>
<?php $__currentLoopData = $appliedScientificPublication->scientists; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<span class="badge badge-info"><?php echo e($item->name); ?></span>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
<td>
<?php echo e($appliedScientificPublication->year ?? ''); ?>
</td>
<td>
<?php $__currentLoopData = $appliedScientificPublication->science_areas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<span class="badge badge-info"><?php echo e($item->name); ?></span>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
<td>
<?php $__currentLoopData = $appliedScientificPublication->science_directions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<span class="badge badge-info"><?php echo e($item->name); ?></span>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
<td>
<?php echo e($appliedScientificPublication->title ?? ''); ?>
</td>
<td>
<?php echo e($appliedScientificPublication->input_time ?? ''); ?>
</td>
<td>
<?php echo e($appliedScientificPublication->authorship_field ?? ''); ?>
</td>
<td>
<?php echo e($appliedScientificPublication->page_count ?? ''); ?>
</td>
<td>
<?php echo e($appliedScientificPublication->publisher->name ?? ''); ?>
</td>
<td>
<?php echo e($appliedScientificPublication->isbn ?? ''); ?>
</td>
<td>
<?php echo e($appliedScientificPublication->doi ?? ''); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php $__env->startSection('scripts'); ?>
<?php echo \Illuminate\View\Factory::parentPlaceholder('scripts'); ?>
<script>
$(function () {
let dtButtons = $.extend(true, [], $.fn.dataTable.defaults.buttons)
// <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('applied_scientific_publication_delete')): ?>
// let deleteButtonTrans = '<?php echo e(trans('global.datatables.delete')); ?>'
// let deleteButton = {
// text: deleteButtonTrans,
// url: "<?php echo e(route('admin.applied-scientific-publications.massDestroy')); ?>",
// className: 'btn-danger',
// action: function (e, dt, node, config) {
// var ids = $.map(dt.rows({ selected: true }).nodes(), function (entry) {
// return $(entry).data('entry-id')
// });
// if (ids.length === 0) {
// alert('<?php echo e(trans('global.datatables.zero_selected')); ?>')
// return
// }
// if (confirm('<?php echo e(trans('global.areYouSure')); ?>')) {
// $.ajax({
// headers: {'x-csrf-token': _token},
// method: 'POST',
// url: config.url,
// data: { ids: ids, _method: 'DELETE' }})
// .done(function () { location.reload() })
// }
// }
// }
// dtButtons.push(deleteButton)
// <?php endif; ?>
$.extend(true, $.fn.dataTable.defaults, {
orderCellsTop: true,
order: [[ 1, 'desc' ]],
pageLength: 50,
});
let table = $('.datatable-scientistAppliedScientificPublications:not(.ajaxTable)').DataTable({ buttons: dtButtons })
})
</script>
<?php $__env->stopSection(); ?><?php /**PATH /var/www/ivs.kaunokolegija.lt/laravel/resources/views/admin/scientists/relationships/scientistAppliedScientificPublications.blade.php ENDPATH**/ ?>