<?php $__env->startSection('title', 'Faulty Devices'); ?>

<?php $__env->startSection('header'); ?>
    <?php if (isset($component)) { $__componentOriginal111218edafe37a3ff745a947bea8c7e5 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal111218edafe37a3ff745a947bea8c7e5 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.isp-page-header','data' => ['title' => 'Faulty devices','module' => 'Inventory','description' => 'Equipment marked as damaged or defective. Repair or retire before re-assigning.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('isp-page-header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Faulty devices','module' => 'Inventory','description' => 'Equipment marked as damaged or defective. Repair or retire before re-assigning.']); ?>
         <?php $__env->slot('actions', null, []); ?> 
            <a href="<?php echo e(route('isp.inventory.index')); ?>" class="pb-btn">All inventory</a>
         <?php $__env->endSlot(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal111218edafe37a3ff745a947bea8c7e5)): ?>
<?php $attributes = $__attributesOriginal111218edafe37a3ff745a947bea8c7e5; ?>
<?php unset($__attributesOriginal111218edafe37a3ff745a947bea8c7e5); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal111218edafe37a3ff745a947bea8c7e5)): ?>
<?php $component = $__componentOriginal111218edafe37a3ff745a947bea8c7e5; ?>
<?php unset($__componentOriginal111218edafe37a3ff745a947bea8c7e5); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('isp.inventory.partials.nav', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <?php if (isset($component)) { $__componentOriginalff420112e83fb52a8cb508be690fe32b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalff420112e83fb52a8cb508be690fe32b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.resource-index','data' => ['filterAction' => route('isp.inventory.faulty'),'filterChips' => [],'paginator' => $items,'empty' => $items->isEmpty(),'emptyTitle' => 'No faulty devices','emptyMessage' => 'Faulty equipment will appear here when marked from the inventory list or assignment screen.','emptyCtaLabel' => 'View inventory','emptyCtaHref' => route('isp.inventory.index')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('resource-index'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['filter-action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.inventory.faulty')),'filter-chips' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([]),'paginator' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($items),'empty' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($items->isEmpty()),'empty-title' => 'No faulty devices','empty-message' => 'Faulty equipment will appear here when marked from the inventory list or assignment screen.','empty-cta-label' => 'View inventory','empty-cta-href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.inventory.index'))]); ?>
         <?php $__env->slot('filters', null, []); ?> 
            <?php if (isset($component)) { $__componentOriginal609c27e10886775abd521bb0a4000498 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal609c27e10886775abd521bb0a4000498 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.listing-filters.search','data' => ['name' => 'q','placeholder' => 'Serial, name…']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('listing-filters.search'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'q','placeholder' => 'Serial, name…']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal609c27e10886775abd521bb0a4000498)): ?>
<?php $attributes = $__attributesOriginal609c27e10886775abd521bb0a4000498; ?>
<?php unset($__attributesOriginal609c27e10886775abd521bb0a4000498); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal609c27e10886775abd521bb0a4000498)): ?>
<?php $component = $__componentOriginal609c27e10886775abd521bb0a4000498; ?>
<?php unset($__componentOriginal609c27e10886775abd521bb0a4000498); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginal379007f10604674fff3ace02f90f5fae = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal379007f10604674fff3ace02f90f5fae = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.listing-filters.per-page','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('listing-filters.per-page'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal379007f10604674fff3ace02f90f5fae)): ?>
<?php $attributes = $__attributesOriginal379007f10604674fff3ace02f90f5fae; ?>
<?php unset($__attributesOriginal379007f10604674fff3ace02f90f5fae); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal379007f10604674fff3ace02f90f5fae)): ?>
<?php $component = $__componentOriginal379007f10604674fff3ace02f90f5fae; ?>
<?php unset($__componentOriginal379007f10604674fff3ace02f90f5fae); ?>
<?php endif; ?>
         <?php $__env->endSlot(); ?>

         <?php $__env->slot('table', null, []); ?> 
            <?php if (isset($component)) { $__componentOriginalc8463834ba515134d5c98b88e1a9dc03 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc8463834ba515134d5c98b88e1a9dc03 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.data-table','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('data-table'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                <thead>
                    <tr>
                        <th>Item</th>
                        <th>Serial</th>
                        <th>Category</th>
                        <th>Last customer</th>
                        <?php if (isset($component)) { $__componentOriginal69c4acddde3079c8bfc515678f409176 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal69c4acddde3079c8bfc515678f409176 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.table-actions.header','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('table-actions.header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal69c4acddde3079c8bfc515678f409176)): ?>
<?php $attributes = $__attributesOriginal69c4acddde3079c8bfc515678f409176; ?>
<?php unset($__attributesOriginal69c4acddde3079c8bfc515678f409176); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal69c4acddde3079c8bfc515678f409176)): ?>
<?php $component = $__componentOriginal69c4acddde3079c8bfc515678f409176; ?>
<?php unset($__componentOriginal69c4acddde3079c8bfc515678f409176); ?>
<?php endif; ?>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if (isset($component)) { $__componentOriginal693da8371f81527050c5488b27378bc6 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal693da8371f81527050c5488b27378bc6 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.listing-table.row','data' => ['href' => route('isp.inventory.show', $item)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('listing-table.row'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.inventory.show', $item))]); ?>
                            <td class="font-semibold"><?php echo e($item->name); ?></td>
                            <td class="font-mono text-sm"><?php echo e($item->serial_number); ?></td>
                            <td><?php echo e($item->categoryLabel()); ?></td>
                            <td><?php echo e($item->assignments->first()?->customer?->full_name ?? '—'); ?></td>
                            <?php if (isset($component)) { $__componentOriginal35f57f4e82a16e7ad7641b9fb6c7f399 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal35f57f4e82a16e7ad7641b9fb6c7f399 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.table-actions','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('table-actions'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
                                <?php if (isset($component)) { $__componentOriginal4bbb0a061de663e48c42cf83a926a23f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4bbb0a061de663e48c42cf83a926a23f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.table-actions.link','data' => ['href' => route('isp.inventory.show', $item),'label' => 'Manage']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('table-actions.link'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('isp.inventory.show', $item)),'label' => 'Manage']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4bbb0a061de663e48c42cf83a926a23f)): ?>
<?php $attributes = $__attributesOriginal4bbb0a061de663e48c42cf83a926a23f; ?>
<?php unset($__attributesOriginal4bbb0a061de663e48c42cf83a926a23f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4bbb0a061de663e48c42cf83a926a23f)): ?>
<?php $component = $__componentOriginal4bbb0a061de663e48c42cf83a926a23f; ?>
<?php unset($__componentOriginal4bbb0a061de663e48c42cf83a926a23f); ?>
<?php endif; ?>
                             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal35f57f4e82a16e7ad7641b9fb6c7f399)): ?>
<?php $attributes = $__attributesOriginal35f57f4e82a16e7ad7641b9fb6c7f399; ?>
<?php unset($__attributesOriginal35f57f4e82a16e7ad7641b9fb6c7f399); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal35f57f4e82a16e7ad7641b9fb6c7f399)): ?>
<?php $component = $__componentOriginal35f57f4e82a16e7ad7641b9fb6c7f399; ?>
<?php unset($__componentOriginal35f57f4e82a16e7ad7641b9fb6c7f399); ?>
<?php endif; ?>
                         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal693da8371f81527050c5488b27378bc6)): ?>
<?php $attributes = $__attributesOriginal693da8371f81527050c5488b27378bc6; ?>
<?php unset($__attributesOriginal693da8371f81527050c5488b27378bc6); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal693da8371f81527050c5488b27378bc6)): ?>
<?php $component = $__componentOriginal693da8371f81527050c5488b27378bc6; ?>
<?php unset($__componentOriginal693da8371f81527050c5488b27378bc6); ?>
<?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc8463834ba515134d5c98b88e1a9dc03)): ?>
<?php $attributes = $__attributesOriginalc8463834ba515134d5c98b88e1a9dc03; ?>
<?php unset($__attributesOriginalc8463834ba515134d5c98b88e1a9dc03); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc8463834ba515134d5c98b88e1a9dc03)): ?>
<?php $component = $__componentOriginalc8463834ba515134d5c98b88e1a9dc03; ?>
<?php unset($__componentOriginalc8463834ba515134d5c98b88e1a9dc03); ?>
<?php endif; ?>
         <?php $__env->endSlot(); ?>
     <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalff420112e83fb52a8cb508be690fe32b)): ?>
<?php $attributes = $__attributesOriginalff420112e83fb52a8cb508be690fe32b; ?>
<?php unset($__attributesOriginalff420112e83fb52a8cb508be690fe32b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalff420112e83fb52a8cb508be690fe32b)): ?>
<?php $component = $__componentOriginalff420112e83fb52a8cb508be690fe32b; ?>
<?php unset($__componentOriginalff420112e83fb52a8cb508be690fe32b); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\ispbilling\resources\views/isp/inventory/faulty.blade.php ENDPATH**/ ?>