<div class="row sales layout-top-spacing">
    <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.home_button','data' => []]); ?>
<?php $component->withName('home_button'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>

    <div class="col-sm-12">
        <div class="widget widget-chart-one">
            <div class="widget-heading">
                <h4 class="card-title">
                    <b><?php echo e($componentName); ?> | <?php echo e($pageTitle); ?></b>
                </h4>
            </div>

            <div class="widget-content">
                <div class="row">
                    <div class="col-lg-2 col-md-4 col-sm-12">
                        <div class="form-group">
                            <label for="state">Estado</label>
                            <select wire:model="state" class="form-control">
                                <option value="">Todos</option>
                                <?php $__currentLoopData = $statusses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($key); ?>"><?php echo e($value); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-2 col-md-4 col-sm-12">
                        <div class="form-group">
                            <label for="role">Rol</label>
                            <select wire:model="role" class="form-control">
                                <option value="">Todos</option>
                                <option value="Sistema">Sistema</option>
                                <?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rol): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($rol->name); ?>"><?php echo e($rol_translations[$rol->name] ?? $rol->name); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-2 col-md-4 col-sm-12">
                        <div class="form-group">
                            <label for="user">Usuario</label>
                            <select wire:model="user" class="form-control">
                                <option value="">Todos</option>
                                <option value="Sistema">Sistema</option>
                                <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($user->name); ?>"><?php echo e($user->name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-2 col-md-4 col-sm-12">
                        <div class="form-group">
                            <label for="module">Módulo</label>
                            <select wire:model="module" class="form-control">
                                <option value="">Todos</option>
                                <?php $__currentLoopData = $models; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($key); ?>"><?php echo e($value); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                    </div>
                    <div class="col-lg-2 col-md-4 col-sm-12">
                        <div class="form-group">
                            <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('month-filter', [])->html();
} elseif ($_instance->childHasBeenRendered('l1235523392-0')) {
    $componentId = $_instance->getRenderedChildComponentId('l1235523392-0');
    $componentTag = $_instance->getRenderedChildComponentTagName('l1235523392-0');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('l1235523392-0');
} else {
    $response = \Livewire\Livewire::mount('month-filter', []);
    $html = $response->html();
    $_instance->logRenderedChild('l1235523392-0', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                        </div>
                    </div>
                    <div class="col-lg-2 col-md-4 col-sm-12">
                        <div style="margin-top: 2.25rem">
                            <button wire:click="clear_filters" class="btn btn-block btn-ghost">Limpiar filtros</button>
                        </div>
                    </div>
                </div>
                <div class="table-responsive">
                    <table class="table table-bordered table-striped mt-1">
                        <thead class="text-white" style="background: #3B3F5C;">
                            <tr>
                                <th class="table-th text-white text-center">ID</th>
                                <th class="table-th text-white text-center">ACCIÓN</th>
                                <th class="table-th text-white text-center">MÓDULO</th>
                                <th class="table-th text-white text-center">USUARIO</th>
                                <th class="table-th text-white text-center">ROL</th>
                                <th class="table-th text-white text-center">ESTADO</th>
                                <th class="table-th text-white text-center">FECHA</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td>
                                        <h6><?php echo e($row->id); ?></h6>
                                    </td>
                                    <td>
                                        <h6><?php echo e($row->action); ?></h6>
                                    </td>
                                    <td>
                                        <h6><?php echo e($models[$row->module] ?? $row->module); ?></h6>
                                    </td>
                                    <td>
                                        <h6><?php echo e($row->user); ?></h6>
                                    </td>
                                    <td>
                                        <h6><?php echo e($rol_translations[$row->rol] ?? $row->rol); ?></h6>
                                    </td>
                                    <td>
                                        <h6 class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                            'font-weight-bold',
                                            'text-success' => $row->status == 'successfull',
                                            'text-warning' => $row->status == 'warning',
                                            'text-info' => $row->status == 'info',
                                            'text-danger' => $row->status == 'danger',
                                        ]) ?>"><?php echo e($statusses[$row->status] ?? $row->status); ?></h6>
                                    </td>
                                    <td>
                                        <h6><?php echo e($row->created_at->format('d/m/Y - h:i a')); ?></h6>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                    <?php echo e($data->links()); ?>

                </div>
            </div>
        </div>
    </div>
</div><?php /**PATH /home2/motopart/public_html/sistema/resources/views/livewire/log.blade.php ENDPATH**/ ?>