<?php $__env->startSection('content'); ?>
<!-- Breadcrumb -->
<nav class="hk-breadcrumb" aria-label="breadcrumb">
    <ol class="breadcrumb breadcrumb-light bg-transparent">
        <li class="breadcrumb-item" aria-current="page">Logs de Auditoria</li>
        <li class="breadcrumb-item active" aria-current="page">Detalhes</li>
    </ol>
</nav>
<!-- /Breadcrumb -->
<div class="container">
    <!-- Title -->
    <div class="hk-pg-header">
        <h4 class="hk-pg-title"><span class="pg-title-icon"><span class="feather-icon"><i data-feather="align-left"></i></span></span>
            Detalhes log
        </h4>
    </div>
    <!-- /Title -->
    <div class="row">
        <div class="col-xl-12">
            <section class="hk-sec-wrapper">
                <div class="form-row">
                    <div class="form-group col-4">
                        <label for="tipo">Tipo</label>
                        <input type="text" name="tipo" class="form-control-plaintext" value="<?php echo e($log->auditable_type_readable); ?>">
                    </div>
                    <div class="form-group col-2">
                        <label for="evento">Evento</label>
                        <input type="text" name="evento" class="form-control-plaintext" value="<?php echo e(Str::ucfirst($log->event_readable)); ?>">
                    </div>
                    <div class="form-group col-4">
                        <label for="usuario">Usuário</label>
                        <input type="text" name="usuario" class="form-control-plaintext" value="<?php echo e($log->user->name); ?>">
                    </div>
                    <div class="form-group col-2">
                        <label for="data">Data/hora</label>
                        <input type="text" name="data" class="form-control-plaintext" value="<?php echo e($log->created_at->format('d/m/Y H:i:s')); ?>">
                    </div>
                    <div class="form-group col-4">
                        <label for="ip">Endereço IP</label>
                        <input type="text" name="ip" class="form-control-plaintext" value="<?php echo e($log->ip_address); ?>">
                    </div>
                    <hr class="col-12">
                    <?php if($log->old_values): ?>
                    <div class="form-group col-6">
                        <label for="antes">
                            <?php if($log->new_values): ?>
                            Antes da edição
                            <?php else: ?>
                            <?php echo e($log->auditable_type_readable); ?> <?php echo e($log->event_readable); ?>

                            <?php endif; ?>
                        </label>
                        <div class="text-dark">
                            <?php $__currentLoopData = $log->old_values; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <p><?php echo e($key); ?>: <?php echo e($value); ?></p>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php if($log->new_values): ?>
                    <div class="form-group col-6">
                        <label for="depois">
                            <?php if($log->old_values): ?>
                            Depois da edição
                            <?php else: ?>
                            <?php echo e($log->auditable_type_readable); ?> <?php echo e($log->event_readable); ?>

                            <?php endif; ?>
                        </label>
                        <div class="text-dark">
                            <?php $__currentLoopData = $log->new_values; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <p><?php echo e($key); ?>: <?php echo e($value); ?></p>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                    <?php endif; ?>
                </div>
                <?php $__env->startComponent('components.button', [
                'route' => 'admin.auditoria.index',
                'icon' => 'arrow-left',
                'label' => 'Voltar',
                'class' => 'btn-secondary'
                ]); ?>
                <?php echo $__env->renderComponent(); ?>
        </div>
        <hr>
        </section>
    </div>
</div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gabriel/repos/sindserv/resources/views/admin/auditoria/show.blade.php ENDPATH**/ ?>