<?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--md table-responsive">
                        <table class="table table--light style--two">
                            <thead>
                                <tr>
                                    <th><?php echo app('translator')->get('S.N.'); ?></th>
                                    <th><?php echo app('translator')->get('Name'); ?></th>
                                    <th><?php echo app('translator')->get('Code'); ?></th>
                                    <th><?php echo app('translator')->get('Symbol'); ?></th>
                                    <th><?php echo app('translator')->get('Rate'); ?></th>
                                    <th><?php echo app('translator')->get('Status'); ?></th>
                                    <th><?php echo app('translator')->get('Action'); ?></th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__empty_1 = true; $__currentLoopData = $fiats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fiat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td><?php echo e($fiats->firstItem() + $loop->index); ?></td>
                                        <td><?php echo e(__($fiat->name)); ?></td>
                                        <td><?php echo e($fiat->code); ?></td>
                                        <td><?php echo e($fiat->symbol); ?></td>
                                        <td>
                                            <span><?php echo e(showAmount($fiat->rate)); ?> <?php echo e(__($fiat->code)); ?></span> / <?php echo app('translator')->get('USD'); ?>
                                        </td>
                                        <td>
                                            <?php echo $fiat->statusBadge ?>
                                        </td>
                                        <td>
                                            <button type="button" class="btn btn-sm btn-outline--primary cuModalBtn" data-resource="<?php echo e($fiat); ?>" data-modal_title="<?php echo app('translator')->get('Edit Fiat Currency'); ?>" data-has_status="1">
                                                <i class="la la-pencil"></i><?php echo app('translator')->get('Edit'); ?>
                                            </button>
                                        </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><!-- table end -->
                    </div>
                </div>
                <?php if($fiats->hasPages()): ?>
                    <div class="card-footer py-4">
                        <?php echo e(paginateLinks($fiats)); ?>

                    </div>
                <?php endif; ?>
            </div><!-- card end -->
        </div>
    </div>

    
    <div id="cuModal" class="modal fade" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title"></h5>
                    <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
                        <i class="las la-times"></i>
                    </button>
                </div>
                <form action="<?php echo e(route('admin.fiat.currency.store')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="modal-body">
                        <div class="form-group">
                            <label><?php echo app('translator')->get('Name'); ?></label>
                            <input type="text" class="form-control" name="name" placeholder="<?php echo app('translator')->get('Great Britain Pound'); ?>" value="<?php echo e(old('name')); ?>" required />
                        </div>
                        <div class="form-group">
                            <label><?php echo app('translator')->get('Code'); ?></label>
                            <input type="text" class="form-control" name="code" placeholder="<?php echo app('translator')->get('GBP'); ?>" value="<?php echo e(old('code')); ?>" required />
                        </div>
                        <div class="form-group">
                            <label><?php echo app('translator')->get('Symbol'); ?></label>
                            <input type="text" class="form-control" name="symbol" placeholder="<?php echo app('translator')->get('£'); ?>" value="<?php echo e(old('symbol')); ?>" required />
                        </div>
                        <div class="form-group">
                            <label><?php echo app('translator')->get('Rate'); ?></label>
                            <div class="input-group">
                                <span class="input-group-text">1 <?php echo app('translator')->get('USD'); ?> = </span>
                                <input class="form-control" type="number" step="any" name="rate" placeholder="<?php echo app('translator')->get('0.75'); ?>" value="<?php echo e(old('rate')); ?>" required>
                                <span class="input-group-text currency-symbol"></span>
                            </div>
                        </div>

                        <div class="status"></div>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn--primary w-100 h-45"><?php echo app('translator')->get('Submit'); ?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('breadcrumb-plugins'); ?>
    <div class="d-flex flex-wrap justify-content-end gap-2 align-items-center">
        <?php if (isset($component)) { $__componentOriginale48b4598ffc2f41a085f001458a956d1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale48b4598ffc2f41a085f001458a956d1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.search-form','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('search-form'); ?>
<?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([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale48b4598ffc2f41a085f001458a956d1)): ?>
<?php $attributes = $__attributesOriginale48b4598ffc2f41a085f001458a956d1; ?>
<?php unset($__attributesOriginale48b4598ffc2f41a085f001458a956d1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale48b4598ffc2f41a085f001458a956d1)): ?>
<?php $component = $__componentOriginale48b4598ffc2f41a085f001458a956d1; ?>
<?php unset($__componentOriginale48b4598ffc2f41a085f001458a956d1); ?>
<?php endif; ?>

        <button type="button" class="btn btn-sm btn-outline--primary me-2 h-45 cuModalBtn" data-modal_title="<?php echo app('translator')->get('Add New Fiat Currency'); ?>">
            <i class="las la-plus"></i><?php echo app('translator')->get('Add New'); ?>
        </button>
    </div>
<?php $__env->stopPush(); ?>


<?php $__env->startPush('script'); ?>
    <script>
        (function($) {
            "use strict";

            $('#cuModal').on('show.bs.modal', function() {
                $('#cuModal').find('.currency-symbol').text($('[name=code]').val());
            });

            $('[name=code]').on('input', function() {
                $('#cuModal').find('.currency-symbol').text($(this).val());
            });
        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\bitpeak\core\resources\views/admin/fiat/index.blade.php ENDPATH**/ ?>