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/0a7ee19ec7a1dc4f8c2601512777e4920d941b42.php
<?php

/**
 * @var LengthAwarePaginator $data
 * @var array $columns
 */

use App\Models\MovementThroughWarehouses;
use App\Services\Branch\BranchService;
use App\Services\Part\PartService;
use App\User;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Facades\Auth;

/** @var User $user */
$user = Auth::user();

?>

<?php $__env->startSection('title'); ?>
     <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.title','data' => ['title' => 'movement.title']]); ?>
<?php $component->withName('title'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['title' => 'movement.title']); ?> <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?> 
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="content d-flex flex-column flex-column-fluid" id="kt_content">
        <?php echo $__env->make('layouts.subheader', ['pageTitle' => 'movement.title'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="d-flex flex-column-fluid">
            <div class="container">
                <div class="card card-custom card-transparent">
                    <div class="card-body p-0">
                        <div class="card card-custom">
                            <div class="card-header">
                                <div class="card-title"><h3 class="card-label"><?php echo app('translator')->get('movement.title'); ?></h3></div>
                                <div class="card-toolbar"></div>
                            </div>
                            <div class="card-body">
                                <div class="mb-7">
                                    <form class="row align-items-center" id="filterCrud" action="">
                                        <input type="hidden" name="filter" value="1">
                                        <div class="col-lg-12 col-xl-12">
                                            <div class="row align-items-center">
                                                <div class="col-md-2 my-2 my-md-0">
                                                     <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.input.search','data' => ['placeholder' => 'movement.part_id','name' => 'part_name','value' => ''.e(request()->part_name).'']]); ?>
<?php $component->withName('input.search'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['placeholder' => 'movement.part_id','name' => 'part_name','value' => ''.e(request()->part_name).'']); ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?> 
                                                </div>

                                                <div class="col-md-3 my-2 my-md-0">
                                                     <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.button','data' => ['id' => 'form-submit-filter','light' => '1']]); ?>
<?php $component->withName('button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes(['id' => 'form-submit-filter','light' => '1']); ?>
                                                        <i class="fas fa-search"></i>
                                                        <?php echo app('translator')->get('admins.search'); ?>
                                                     <?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?> 
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                <table class="table table-hover">
                                    <?php echo $__env->make('components.table-header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    <tbody>
                                    <?php if(!$data->isEmpty()): ?>
                                        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $movement): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <?php
                                                /** @var MovementThroughWarehouses $movement */
                                                $central = BranchService::getCentral();
                                                if ($central->id == $user->branch_id) {
                                                    $central = null;
                                                }
                                                $store = PartService::getStorageInfo($movement->part);
                                                $storeCount = 0;
                                                $storeCount += $store->local;
                                                $storeCount += $store->branch;
                                                if ($central) {
                                                    $storeCount += $store->central;
                                                }
                                            ?>
                                            <tr>
                                                <td><a href="<?php echo e(route('repairs.show', $movement->repair_id)); ?>" class="text-primary font-weight-bolder font-size-lg"><?php echo e($movement->repair->getNumber()); ?></a></td>
                                                <td><a href="<?php echo e(route('parts.show', $movement->part_id)); ?>" class="text-primary font-weight-bolder font-size-lg"><?php echo e($movement->part->getFullName()); ?></a></td>
                                                <?php echo $__env->make('parts._warehouses', ['store' => $store, 'user' => $user, 'model' => $movement->part, 'central' => $central], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                                <?php if($movement->type == '+'): ?>
                                                    <td class="text-success"><?php echo e($movement->type); ?><?php echo e($movement->amount); ?> <?php echo e($movement->part->getItemName()); ?></td>
                                                <?php else: ?>
                                                    <td class="text-danger"><?php echo e($movement->type); ?><?php echo e($movement->amount); ?> <?php echo e($movement->part->getItemName()); ?></td>
                                                <?php endif; ?>
                                                <td><?php echo e($movement->created_at->format(config('crud.formatDate'))); ?></td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php else: ?>
                                        <tr>
                                            <td align="center" colspan="<?php echo e(sizeof($columns['fields'])); ?>">
                                                <?php echo app('translator')->get('movement.notFound'); ?>
                                            </td>
                                        </tr>
                                    <?php endif; ?>
                                    </tbody>
                                </table>

                                <?php echo $__env->make('layouts.table_footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/ipsremont-demo/resources/views/movement/list.blade.php ENDPATH**/ ?>