

<?php $__env->startSection('panel'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card b-radius--10">
                <div class="card-body p-0">
                    <div class="table-responsive--sm table-responsive">
                        <table class="table--light style--two table">
                            <thead>
                                <tr>
                                    <th><?php echo app('translator')->get('User'); ?></th>
                                    <th><?php echo app('translator')->get('BV'); ?></th>
                                    <th><?php echo app('translator')->get('Position'); ?></th>
                                    <th><?php echo app('translator')->get('Detail'); ?></th>
                                    <th><?php echo app('translator')->get('Date'); ?></th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__empty_1 = true; $__currentLoopData = $logs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td>
                                            <span class="fw-bold"><?php echo e($data->user->fullname); ?></span>
                                            <br>
                                            <span class="text--small"> <a
                                                    href="<?php echo e(route('admin.users.detail', @$data->user_id)); ?>"><span>@</span><?php echo e($data->user->username); ?></a>
                                            </span>
                                        </td>
                                        <td class="budget">
                                            <strong
                                                <?php if($data->trx_type == '+'): ?> class="text--success"
                                                <?php else: ?> class="text--danger" <?php endif; ?>>
                                                <?php echo e($data->trx_type == '+' ? '+' : '-'); ?>

                                                <?php echo e(showAmount($data->amount)); ?> <?php echo e(__($general->cur_text)); ?></strong>
                                        </td>

                                        <td>
                                            <?php if($data->position == 1): ?>
                                                <span class="badge badge--success"><?php echo app('translator')->get('Left'); ?></span>
                                            <?php else: ?>
                                                <span class="badge badge--primary"><?php echo app('translator')->get('Right'); ?></span>
                                            <?php endif; ?>
                                        </td>
                                        <td><?php echo e($data->details); ?></td>
                                        <td>
                                            <?php echo e(showDateTime($data->created_at)); ?><br><?php echo e(diffForHumans($data->created_at)); ?>

                                        </td>
                                    </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>
                        </table>
                    </div>
                </div>

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

                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('breadcrumb-plugins'); ?>
    <form class="d-flex flex-wrap gap-2" action="" method="GET">
        <div class="input-group flex-fill w-auto">
            <select class="form-control" name="type">
                <option value=""><?php echo app('translator')->get('All'); ?></option>
                <option value="rightBV" <?php if(request()->type == 'rightBV'): echo 'selected'; endif; ?>><?php echo app('translator')->get('Right BV'); ?></option>
                <option value="leftBV" <?php if(request()->type == 'leftBV'): echo 'selected'; endif; ?>><?php echo app('translator')->get('Left BV'); ?></option>
                <option value="cutBV" <?php if(request()->type == 'cutBV'): echo 'selected'; endif; ?>><?php echo app('translator')->get('Cut BV'); ?></option>
            </select>
            <button class="btn btn-primary" type="submit"><i class="la la-search"></i></button>
        </div>
        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.search-key-field','data' => ['placeholder' => 'Username','btn' => 'btn--primary']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('search-key-field'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['placeholder' => 'Username','btn' => 'btn--primary']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
    </form>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mez5ba60cfao/public_html/Files/core/resources/views/admin/reports/bvLog.blade.php ENDPATH**/ ?>