HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/ivs.kaunokolegija.lt/laravel/storage/framework/views/19e7661746ac450ec3eb6caa939d1267.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-socialPartnerCoopAgreements">
                    <thead>
                        <tr>
                            <th width="10">

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.id')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.social_partner')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.company.fields.companycode')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.state')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.type')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.number')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.signing_date')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.validity_date')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.contactperson')); ?>

                            </th>
                            <th>
                                <?php echo e(trans('cruds.coopAgreement.fields.attachments')); ?>

                            </th>
                            
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $coopAgreements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $coopAgreement): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr data-entry-id="<?php echo e($coopAgreement->id); ?>">
                                <td>

                                </td>
                                <td>
                                    <?php echo e($coopAgreement->id ?? ''); ?>

                                </td>
                                <td>
                                    <?php echo e($coopAgreement->social_partner->name ?? ''); ?>

                                </td>
                                <td>
                                    <?php echo e($coopAgreement->social_partner->companycode ?? ''); ?>

                                </td>
                                <td>
                                    <?php echo e($coopAgreement->state->name ?? ''); ?>

                                </td>
                                <td>
                                    <?php echo e($coopAgreement->type->name ?? ''); ?>

                                </td>
                                <td>
                                    <?php echo e($coopAgreement->number ?? ''); ?>

                                </td>
                                <td>
                                    <?php echo e($coopAgreement->signing_date ?? ''); ?>

                                </td>
                                <td>
                                    <?php echo e($coopAgreement->validity_date ?? ''); ?>

                                </td>
                                <td>
                                    <?php $__currentLoopData = $coopAgreement->contactpeople; $__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 = $coopAgreement->attachments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $media): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <a href="<?php echo e($media->getUrl()); ?>" target="_blank">
                                            <?php echo e(trans('global.view_file')); ?>

                                        </a>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </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('coop_agreement_delete')): ?>
//   let deleteButtonTrans = '<?php echo e(trans('global.datatables.delete')); ?>'
//   let deleteButton = {
//     text: deleteButtonTrans,
//     url: "<?php echo e(route('admin.coop-agreements.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-socialPartnerCoopAgreements:not(.ajaxTable)').DataTable({ buttons: dtButtons })
  $('a[data-toggle="tab"]').on('shown.bs.tab click', function(e){
      $($.fn.dataTable.tables(true)).DataTable()
          .columns.adjust();
  });
  
})

</script>
<?php $__env->stopSection(); ?><?php /**PATH /var/www/ivs.kaunokolegija.lt/laravel/resources/views/admin/companies/relationships/socialPartnerCoopAgreements.blade.php ENDPATH**/ ?>