<?php $__env->startSection('panel'); ?>
    <?php
        $request = request();
        $tableName = 'support_ticket_list';

        $tableConfiguration = $tableConfiguration = tableConfiguration($tableName);

        $priorityOptions = [
            Status::PRIORITY_HIGH =>'High',
            Status::PRIORITY_MEDIUM =>'Medium',
            Status::PRIORITY_LOW =>'Low',
        ];

        $columns = collect([
            prepareTableColumn('ticket', 'Ticket No.', '"#".$item->ticket'),
            prepareTableColumn('subject', 'Subject', 'strLimit($item->subject, 50)'),
            prepareTableColumn('account_number', 'Account Number', link:'$item->user_id ? route("admin.users.detail", $item->user_id) : "#"'),
            prepareTableColumn('name', 'Name'),
            prepareTableColumn('email', 'Email'),
            prepareTableColumn('priority', 'Priority', '$item->priority_badge', filter: 'select', filterOptions:$priorityOptions, echoable:true),
            prepareTableColumn('status', 'Status', '$item->status_badge', echoable:true),
            prepareTableColumn('created_at', 'Opened At', 'showDateTime("$item->created_at", "d M, Y, h:i A")', filter: 'date'),
            prepareTableColumn('last_reply', 'Last Reply On', 'showDateTime("$item->last_reply", "d M, Y h:i A")', filter: 'date')
        ]);

        $action = [
            'name' => 'Action',
            'style' => '',
            'show' => can('admin.ticket.view'),
            'buttons' => [
                [
                    'name' => 'Details',
                    'show' => 'can("admin.ticket.view")',
                    'link' => 'route("admin.ticket.view", $item->id)',
                    'icon' => 'la la-desktop',
                    'class' => 'btn btn-outline--primary'
                ]
            ],
        ];

        if ($tableConfiguration) {
            $visibleColumns = $tableConfiguration->visible_columns;
        } else {
            $visibleColumns = $columns->pluck('id')->toArray();
        }
    ?>

<?php if (isset($component)) { $__componentOriginala9d13211d16a9b68016cb700b31e0809 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala9d13211d16a9b68016cb700b31e0809 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.viser_table.table','data' => ['data' => $items,'columns' => $columns,'action' => $action,'columnConfig' => true,'tableName' => $tableName,'visibleColumns' => $visibleColumns,'class' => 'table-responsive--md table-responsive']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('viser_table.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(['data' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($items),'columns' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($columns),'action' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($action),'columnConfig' => true,'tableName' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($tableName),'visibleColumns' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($visibleColumns),'class' => 'table-responsive--md table-responsive']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala9d13211d16a9b68016cb700b31e0809)): ?>
<?php $attributes = $__attributesOriginala9d13211d16a9b68016cb700b31e0809; ?>
<?php unset($__attributesOriginala9d13211d16a9b68016cb700b31e0809); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala9d13211d16a9b68016cb700b31e0809)): ?>
<?php $component = $__componentOriginala9d13211d16a9b68016cb700b31e0809; ?>
<?php unset($__componentOriginala9d13211d16a9b68016cb700b31e0809); ?>
<?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pxmssriecy/heritagecrestbank.com/core/resources/views/admin/support/tickets.blade.php ENDPATH**/ ?>