<?php $__env->startSection('mainContent'); ?>
<?php echo generateBreadcrumb(); ?>
<section class="admin-visitor-area up_st_admin_visitor">
<div class="container-fluid p-0">
<div class="row">
<div class="col-lg-12">
<div class="row">
<div class="col-lg-4 no-gutters">
<div class="box_header common_table_header">
<div class="main-title d-md-flex">
<h3 class="mb-0 mr-30 mb_xs_15px mb_sm_20px"><?php echo e(__('setting.Currency List')); ?></h3>
<ul class="d-flex">
<?php if(permissionCheck('currency.store')): ?>
<li><a data-toggle="modal" class="primary-btn radius_30px mr-10 fix-gr-bg"
href="#" onclick="open_add_currency_modal()"><i
class="ti-plus"></i><?php echo e(__('common.Add New')); ?> <?php echo e(__('common.Currency')); ?>
</a></li>
<?php endif; ?>
</ul>
</div>
</div>
</div>
</div>
<div class="QA_section QA_section_heading_custom check_box_table">
<div class="QA_table ">
<!-- table-responsive -->
<div class="">
<table id="lms_table" class="table Crm_table_active3">
<thead>
<tr>
<th scope="col"><?php echo e(__('common.SL')); ?></th>
<th scope="col"><?php echo e(__('common.Name')); ?></th>
<th scope="col"><?php echo e(__('setting.Code')); ?></th>
<th scope="col"><?php echo e(__('setting.Symbol')); ?></th>
<th scope="col"><?php echo e(__('common.Action')); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<th><?php echo e($key+1); ?></th>
<td><?php echo e($currency->name); ?></td>
<td><?php echo e($currency->code); ?></td>
<td><?php echo e($currency->symbol); ?></td>
<td>
<!-- shortby -->
<div class="dropdown CRM_dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button"
id="dropdownMenu2" data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false">
<?php echo e(__('common.Select')); ?>
</button>
<div class="dropdown-menu dropdown-menu-right"
aria-labelledby="dropdownMenu2">
<?php if(permissionCheck('currencies.edit_modal')): ?>
<a href="#" data-toggle="modal" data-target="#Item_Edit"
class="dropdown-item edit_brand"
onclick="edit_currency_modal(<?php echo e($currency->id); ?>)"><?php echo e(__('common.Edit')); ?></a>
<?php endif; ?>
<?php if(permissionCheck('currencies.destroy')): ?>
<a onclick="confirm_modal('<?php echo e(route('currencies.destroy', $currency->id)); ?>');"
class="dropdown-item edit_brand"><?php echo e(__('common.Delete')); ?></a>
<?php endif; ?>
</div>
</div>
<!-- shortby -->
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div id="edit_form">
</div>
<div id="add_currency_modal">
<div class="modal fade admin-query" id="currency_add">
<div class="modal-dialog modal_800px modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php echo e(__('common.Add New')); ?> <?php echo e(__('common.Currency')); ?></h4>
<button type="button" class="close" data-dismiss="modal">
<i class="ti-close "></i>
</button>
</div>
<div class="modal-body">
<form action="<?php echo e(route('currencies.store')); ?>" method="POST" id="currency_addForm">
<?php echo csrf_field(); ?>
<div class="row">
<div class="col-xl-12">
<div class="primary_input mb-25">
<label class="primary_input_label" for=""><?php echo e(__('common.Name')); ?> <strong
class="text-danger">*</strong></label>
<input name="name" class="primary_input_field name" placeholder="Dollar"
type="text" required>
</div>
</div>
<div class="col-xl-12">
<div class="primary_input mb-25">
<label class="primary_input_label" for=""><?php echo e(__('setting.Code')); ?> <strong
class="text-danger">*</strong></label>
<input name="code" class="primary_input_field name" placeholder="USD"
type="text" required>
</div>
</div>
<div class="col-xl-12">
<div class="primary_input mb-25">
<label class="primary_input_label" for=""><?php echo e(__('setting.Symbol')); ?> <strong
class="text-danger">*</strong></label>
<input name="symbol" class="primary_input_field name" placeholder="$"
type="text" required>
</div>
</div>
<div class="col-xl-12 d-none">
<div class="primary_input mb-25">
<label class="primary_input_label" for=""><?php echo e(__('setting.Conversion Rate')); ?>
<strong class="text-danger">*</strong></label>
<input name="conversion_rate" class="primary_input_field name" placeholder="1"
type="text" value="1">
</div>
</div>
<div class="col-lg-12 text-center">
<div class="d-flex justify-content-center pt_20">
<button type="submit" class="primary-btn semi_large2 fix-gr-bg"
id="save_button_parent"><i
class="ti-check"></i><?php echo e(__('common.Save')); ?>
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<input type="hidden" name="currency_edit" class="currency_edit" value="<?php echo e(route('currencies.edit_modal')); ?>">
<?php echo $__env->make('backend.partials.delete_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
<script src="<?php echo e(asset('public/backend/js/currency.js')); ?>"></script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('backend.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bouloter/infix/Modules/Setting/Resources/views/currencies/index.blade.php ENDPATH**/ ?>