HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/ipsremont-demo/storage/framework/views/4b17bafd67b13d5e012603452fef873a701d4735.php
<?php

/**
 * @var LengthAwarePaginator|Part[] $data
 */

use App\Helpers\UserHelper;
use App\Models\Part;
use App\Models\Permission;
use App\Services\Part\PartService;
use Illuminate\Pagination\LengthAwarePaginator;

$user = UserHelper::getUser();

?>

<table class="table table-hover parts-table">
    <?php echo $__env->make('components.table-header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <tbody>
    <?php if($data->isNotEmpty()): ?>
        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $part): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr class="font-size-lg">
                <td class="d-flex align-items-center">
                    <div class="symbol symbol-<?php echo e(isset($columns['fields']['storage']) && $user->isService() ? 80 : 60); ?> flex-shrink-0 mr-4 bg-light">
                        <div class="symbol-label" style="background-image: url('<?php echo e($part->getImage()); ?>')"></div>
                    </div>
                    <div class="d-flex flex-column flex-grow-1 my-lg-0 my-2 pr-3">
                        <a href="<?php echo e(route('parts.show', $part->id)); ?>" class="text-primary font-weight-bolder text-hover-primary font-size-lg"><?php echo e($part->getName()); ?></a>
                    </div>
                </td>
                <td class="text-dark"><?php echo e($part->external_id); ?></td>

                <td class="text-right align-middle font-weight-bolder font-size-h5"><?php echo e($part->getPriceConverted()); ?></td>

                <?php if(can([Permission::orders, Permission::actions])): ?>
                    <?php if(isset($columns['fields']['storage'])): ?>
                        <?php echo $__env->make('parts._warehouses', [
                          'store' => PartService::getStorageInfo($part),
                          'user' => $user,
                          'model' => $part,
                          'central' => $central,
                        ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php endif; ?>

                    <?php if(isset($columns['fields']['actions'])): ?>
                        <td class="js-go-to text-right align-middle">
                            <button id="add-to-cart" data-token="<?php echo e(csrf_token()); ?>" data-id="<?php echo e($part->id); ?>" type="submit" class="btn btn-warning text-uppercase font-weight-bold ml-3 add-to-cart">
                                <?php echo app('translator')->get('parts.toCart'); ?>
                            </button>
                        </td>
                    <?php endif; ?>
                <?php endif; ?>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php else: ?>
        <tr>
            <td align="center" colspan="<?php echo e(count($columns['fields'])); ?>"><?php echo app('translator')->get('parts.notFound'); ?></td>
        </tr>
    <?php endif; ?>
    </tbody>
</table>
<?php /**PATH /var/www/ipsremont-demo/resources/views/parts/_table.blade.php ENDPATH**/ ?>