<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'data' => collect([]),
    'columns' => [],
    'action' => [
        'show' => true,
        'name' => 'Action',
        'style' => 'dropdown',
        'buttons' => [],
    ],

    'rows' => true,
    'sortable' => true,
    'exportable' => true,
    'searchable' => true,
    'columnConfig' => true,
    'visibleColumns' => [],
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'data' => collect([]),
    'columns' => [],
    'action' => [
        'show' => true,
        'name' => 'Action',
        'style' => 'dropdown',
        'buttons' => [],
    ],

    'rows' => true,
    'sortable' => true,
    'exportable' => true,
    'searchable' => true,
    'columnConfig' => true,
    'visibleColumns' => [],
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars); ?>

<div class="card viser--table">
    <?php
        $filterable = collect($columns)->whereNotNull('filter')->count() > 0;
        $renderColumns = $columns->whereIn('id', $visibleColumns);
    ?>

    <?php if($rows || $sortable || $exportable || $searchable || $filterable): ?>
        <div class="card-header py-3">
            <?php if (isset($component)) { $__componentOriginal036897b60f7027bbd3f24d7317ad7689 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal036897b60f7027bbd3f24d7317ad7689 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.viser_table.table-options','data' => ['filterable' => $filterable,'rows' => $rows,'sortable' => $sortable,'exportable' => $exportable,'searchable' => $searchable]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('viser_table.table-options'); ?>
<?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(['filterable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($filterable),'rows' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($rows),'sortable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($sortable),'exportable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($exportable),'searchable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($searchable)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal036897b60f7027bbd3f24d7317ad7689)): ?>
<?php $attributes = $__attributesOriginal036897b60f7027bbd3f24d7317ad7689; ?>
<?php unset($__attributesOriginal036897b60f7027bbd3f24d7317ad7689); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal036897b60f7027bbd3f24d7317ad7689)): ?>
<?php $component = $__componentOriginal036897b60f7027bbd3f24d7317ad7689; ?>
<?php unset($__componentOriginal036897b60f7027bbd3f24d7317ad7689); ?>
<?php endif; ?>
        </div>
    <?php endif; ?>

    <div class="card-body p-0 ">
        <div <?php echo e($attributes); ?>>
            <table class="table--light style--two table" id="viserTable">
                <?php if (isset($component)) { $__componentOriginal3c656cb74936a02fc6b954dca156b31e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3c656cb74936a02fc6b954dca156b31e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.viser_table.table-header','data' => ['renderColumns' => $renderColumns,'action' => $action]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('viser_table.table-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(['renderColumns' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($renderColumns),'action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($action)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3c656cb74936a02fc6b954dca156b31e)): ?>
<?php $attributes = $__attributesOriginal3c656cb74936a02fc6b954dca156b31e; ?>
<?php unset($__attributesOriginal3c656cb74936a02fc6b954dca156b31e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3c656cb74936a02fc6b954dca156b31e)): ?>
<?php $component = $__componentOriginal3c656cb74936a02fc6b954dca156b31e; ?>
<?php unset($__componentOriginal3c656cb74936a02fc6b954dca156b31e); ?>
<?php endif; ?>

                <?php if(@$tbody): ?>
                    <?php echo e($tbody); ?>

                <?php else: ?>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <?php if (isset($component)) { $__componentOriginalc72fb543965129dc262e51f60885bd88 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc72fb543965129dc262e51f60885bd88 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.viser_table.table-data-columns','data' => ['renderColumns' => $renderColumns,'item' => $item]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('viser_table.table-data-columns'); ?>
<?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(['renderColumns' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($renderColumns),'item' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc72fb543965129dc262e51f60885bd88)): ?>
<?php $attributes = $__attributesOriginalc72fb543965129dc262e51f60885bd88; ?>
<?php unset($__attributesOriginalc72fb543965129dc262e51f60885bd88); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc72fb543965129dc262e51f60885bd88)): ?>
<?php $component = $__componentOriginalc72fb543965129dc262e51f60885bd88; ?>
<?php unset($__componentOriginalc72fb543965129dc262e51f60885bd88); ?>
<?php endif; ?>

                                <?php if($action['show']): ?>
                                    <td>
                                        <?php if (isset($component)) { $__componentOriginalacac99ec0a40e265a1cdf2cb017eff98 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalacac99ec0a40e265a1cdf2cb017eff98 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.viser_table.table-actions','data' => ['action' => $action,'item' => $item]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('viser_table.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(['action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($action),'item' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($item)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalacac99ec0a40e265a1cdf2cb017eff98)): ?>
<?php $attributes = $__attributesOriginalacac99ec0a40e265a1cdf2cb017eff98; ?>
<?php unset($__attributesOriginalacac99ec0a40e265a1cdf2cb017eff98); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalacac99ec0a40e265a1cdf2cb017eff98)): ?>
<?php $component = $__componentOriginalacac99ec0a40e265a1cdf2cb017eff98; ?>
<?php unset($__componentOriginalacac99ec0a40e265a1cdf2cb017eff98); ?>
<?php endif; ?>
                                    </td>
                                <?php endif; ?>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td class="text-muted text-center" colspan="100%"><?php echo e(__($emptyMessage)); ?></td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                <?php endif; ?>
            </table>
        </div>
    </div>

    <?php if(!blank($data) && $data->hasPages()): ?>
        <div class="card-footer py-4">
            <?php echo e(paginateLinks($data)); ?>

        </div>
    <?php endif; ?>
</div>
<?php /**PATH /home/pxmssriecy/heritagecrestbank.com/core/resources/views/components/viser_table/table.blade.php ENDPATH**/ ?>