File: /var/www/ivs.kaunokolegija.lt/laravel/storage/framework/views/9d18c1b0c416b95ea9971bfeae6cdc93.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-scientistIntScienceProjects">
<thead>
<tr>
<th width="10">
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.id')); ?>
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.scientist')); ?>
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.leaded_participated')); ?>
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.leader')); ?>
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.title')); ?>
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.number')); ?>
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.period_from')); ?>
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.period_to')); ?>
</th>
<th>
<?php echo e(trans('cruds.intScienceProject.fields.budget')); ?>
</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $intScienceProjects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $intScienceProject): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr data-entry-id="<?php echo e($intScienceProject->id); ?>">
<td>
</td>
<td>
<?php echo e($intScienceProject->id ?? ''); ?>
</td>
<td>
<?php $__currentLoopData = $intScienceProject->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(App\Models\IntScienceProject::LEADED_PARTICIPATED_SELECT[$intScienceProject->leaded_participated] ?? ''); ?>
</td>
<td>
<?php echo e($intScienceProject->leader ?? ''); ?>
</td>
<td>
<?php echo e($intScienceProject->title ?? ''); ?>
</td>
<td>
<?php echo e($intScienceProject->number ?? ''); ?>
</td>
<td>
<?php echo e($intScienceProject->period_from ?? ''); ?>
</td>
<td>
<?php echo e($intScienceProject->period_to ?? ''); ?>
</td>
<td>
<?php echo e($intScienceProject->budget ?? ''); ?>
</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('int_science_project_delete')): ?>
// let deleteButtonTrans = '<?php echo e(trans('global.datatables.delete')); ?>'
// let deleteButton = {
// text: deleteButtonTrans,
// url: "<?php echo e(route('admin.int-science-projects.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-scientistIntScienceProjects:not(.ajaxTable)').DataTable({ buttons: dtButtons })
})
</script>
<?php $__env->stopSection(); ?><?php /**PATH /var/www/ivs.kaunokolegija.lt/laravel/resources/views/admin/scientists/relationships/scientistIntScienceProjects.blade.php ENDPATH**/ ?>