D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
drmariampharmacy.com
/
storage
/
framework
/
views
/
Filename :
56899767ffb3cf5fa0dfe95ced53b5b9.php
back
Copy
<?php $__env->startSection('title', translate('Currency')); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <div class="mb-4 pb-2"> <h2 class="h1 mb-0 text-capitalize d-flex align-items-center gap-2"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/system-setting.png')); ?>" alt=""> <?php echo e(translate('system_Setup')); ?> </h2> </div> <?php echo $__env->make('admin-views.system-setup.system-settings-inline-menu', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <div class="d-flex flex-column gap-20"> <div class="bg-info bg-opacity-10 fs-12 px-12 py-10 text-dark rounded d-flex gap-2 align-items-center mb-sm-20"> <i class="fi fi-sr-lightbulb-on text-info"></i> <span> <?php echo e(translate('exchange_rate_are_changeable_so_please_keep_updated.')); ?> <?php echo e(translate('if_you_change_the_default_currency_it_will_be_automatically_updated_on_the_business_settings_page')); ?> </span> </div> </div> <div class="card"> <div class="card-body"> <div class="mb-3 mb-sm-20"> <h3><?php echo e(translate('Add_New_Currency')); ?></h3> <p class="mb-0 fs-12"> <?php echo e(translate('add_different_types_of_currency_for_different_types_of_country.')); ?> </p> </div> <form action="<?php echo e(route('admin.system-setup.currency.store')); ?>" method="post" class="" novalidate="novalidate"> <?php echo csrf_field(); ?> <div class="p-12 p-sm-20 bg-section rounded"> <div class="row g-4"> <div class="col-md-6"> <div class="form-group"> <label class="form-label text-capitalize" for="name"> <?php echo e(translate('currency_name')); ?> <span class="text-danger">*</span> <span class="tooltip-icon" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="<?php echo e(translate('add_the_name_of_the_currency_you_want_to_add')); ?>" data-bs-title="<?php echo e(translate('add_the_name_of_the_currency_you_want_to_add')); ?>"> <i class="fi fi-sr-info"></i> </span> </label> <input type="text" name="name" class="form-control" id="name" placeholder="<?php echo e(translate('ex'.':'.translate('United_States_Dollar'))); ?>" data-required-msg="<?php echo e(translate('currency_name_is_required')); ?>" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="form-label text-capitalize" for="symbol"> <?php echo e(translate('currency_symbol')); ?> <span class="text-danger">*</span> <span class="tooltip-icon" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="<?php echo e(translate('add_the_symbol_of_the_currency_you_want_to_add')); ?>" data-bs-title="<?php echo e(translate('add_the_symbol_of_the_currency_you_want_to_add')); ?>"> <i class="fi fi-sr-info"></i> </span> </label> <input type="text" name="symbol" class="form-control" id="symbol" data-required-msg="<?php echo e(translate('currency_symbol_is_required')); ?>" placeholder="<?php echo e(translate('ex').':'.'$'); ?>" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="form-label text-capitalize" for="currency_code"> <?php echo e(translate('currency_code')); ?> <span class="text-danger">*</span> <span class="tooltip-icon" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="<?php echo e(translate('add_the_code_of_the_currency_you_want_to_add')); ?>" data-bs-title="<?php echo e(translate('add_the_code_of_the_currency_you_want_to_add')); ?>"> <i class="fi fi-sr-info"></i> </span> </label> <input type="text" name="code" class="form-control" id="currency_code" data-required-msg="<?php echo e(translate('currency_code_is_required')); ?>" placeholder="<?php echo e(translate('ex').':'.'USD'); ?>" required> </div> </div> <?php if($currencyModel['value']=='multi_currency'): ?> <div class="col-md-6"> <div class="form-group"> <label class="form-label text-capitalize" for="exchange_rate"> <?php echo e(translate('exchange_rate')); ?> <span class="text-danger">*</span> <span class="tooltip-icon" data-bs-toggle="tooltip" data-bs-placement="right" aria-label="<?php echo e(translate('based_on_your_region_set_the_exchange_rate_of_the_currency_you_want_to_add')); ?>" data-bs-title="<?php echo e(translate('based_on_your_region_set_the_exchange_rate_of_the_currency_you_want_to_add')); ?>"> <i class="fi fi-sr-info"></i> </span> </label> <input type="number" min="1" max="1000000" name="exchange_rate" step="any" class="form-control" id="exchange_rate" data-required-msg="<?php echo e(translate('exchange_rate_is_required')); ?>" placeholder="<?php echo e(translate('ex').':'.'120'); ?>" required> </div> </div> <?php endif; ?> </div> </div> <div class="d-flex justify-content-end mt-4"> <div class="d-flex justify-content-sm-end justify-content-center flex-wrap gap-3 flex-grow-1 flex-grow-sm-0 bg-white"> <button type="reset" class="btn btn-secondary px-3 px-sm-4 w-120"><?php echo e(translate('reset')); ?></button> <button type="submit" class="btn btn-primary px-3 px-sm-4"> <?php echo e(translate('submit')); ?> </button> </div> </div> </form> </div> </div> <div class="card mt-3"> <div class="card-body"> <div class="d-flex justify-content-between align-items-center gap-20 flex-wrap"> <h3 class="mb-0"> <?php echo e(translate('Currency_list')); ?> <span class="badge text-dark bg-body-secondary fw-semibold rounded-50"><?php echo e($currencies->count()); ?></span> </h3> <div class="d-flex flex-wrap gap-3 align-items-center justify-content-sm-end flex-grow-1"> <div class="flex-grow-1 max-w-300 min-w-100-mobile"> <form action="" method="GET"> <div class="input-group"> <input id="datatableSearch_" type="search" name="searchValue" class="form-control" placeholder="Search by currency name" value="<?php echo e(request()->searchValue); ?>" aria-label="Search orders" > <div class="input-group-append search-submit"> <button type="submit"> <i class="fi fi-rr-search"></i> </button> </div> </div> </form> </div> </div> </div> <div class="mt-4"> <div class="table-responsive"> <table class="table table-hover table-borderless table-thead-bordered table-nowrap table-align-middle card-table text-start"> <thead class="thead-light thead-50 text-capitalize"> <tr> <th><?php echo e(translate('SL')); ?></th> <th><?php echo e(translate('currency_name')); ?></th> <th><?php echo e(translate('currency_symbol')); ?></th> <th><?php echo e(translate('currency_code')); ?></th> <?php if($currencyModel['value']=='multi_currency'): ?> <th><?php echo e(translate('exchange_rate')); ?> (<?php echo e('1'.' '. getCurrencyCode(type: 'default').' '.'='.'?'); ?>) </th> <?php endif; ?> <th><?php echo e(translate('status')); ?></th> <th class="text-center"><?php echo e(translate('action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($currencies->firstitem()+ $key); ?></td> <td class="max-w-200 overflow-hidden text-wrap"> <?php echo e($currency->name); ?> </td> <td class="max-w-200 overflow-hidden text-wrap"> <?php echo e($currency->symbol); ?> </td> <td class="max-w-200 overflow-hidden text-wrap"> <?php echo e($currency->code); ?> </td> <?php if($currencyModel['value']=='multi_currency'): ?> <td><?php echo e($currency->exchange_rate); ?></td> <?php endif; ?> <td> <?php if($default['value'] != $currency->id): ?> <?php if(($currency->status == 0) || ($currency->status == 1 && ($digitalPaymentStatus ? $currency->must_required_for_gateway != 1 : 1))): ?> <?php echo $__env->make("admin-views.system-setup.currency._status-button-partial", array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <?php else: ?> <label class="switcher" for="currency-status<?php echo e($currency['id']); ?>" data-bs-toggle="modal" data-bs-target="#currency-modal<?php echo e($currency['id']); ?>"> <input type="checkbox" class="switcher_input" disabled id="currency-status<?php echo e($currency['id']); ?>" name="status" value="1" <?php echo e($currency->status ? 'checked' : ''); ?> data-modal-id="toggle-status-modal" data-toggle-id="currency-status<?php echo e($currency['id']); ?>" data-on-image="currency-on.png" data-off-image="currency-off.png" data-on-title="<?php echo e(translate('Want_to_Turn_ON_Currency_Status').'?'); ?>" data-off-title="<?php echo e(translate('Want_to_Turn_OFF_Currency_Status').'?'); ?>" data-on-message="<p><?php echo e(translate('if_enabled_this_currency_will_be_available_throughout_the_entire_system')); ?></p>" data-off-message="<p><?php echo e(translate('if_disabled_this_currency_will_be_hidden_from_the_entire_system')); ?></p>"> <span class="switcher_control"></span> </label> <?php endif; ?> <?php else: ?> <label class="badge text-bg-info badge-info badge-sm"><?php echo e(translate('default')); ?></label> <?php endif; ?> </td> <td> <div class="d-flex justify-content-center"> <div class="dropdown"> <button class="btn btn-outline-primary btn-outline-primary-dark icon-btn" data-bs-toggle="dropdown"> <i class="fi fi-sr-menu-dots-vertical"></i> </button> <div class="dropdown-menu"> <?php if($default['value'] != $currency->id): ?> <button class="align-items-center d-flex dropdown-item gap-2 mark-as-default-currency" data-ajax="<?php echo e(route('admin.system-setup.currency.check-currency-update')); ?>" data-code="<?php echo e($currency->code); ?>"> <i class="fi fi-rr-check-circle mt-1"></i> <?php echo e(translate('Mark_As_Default')); ?> </button> <?php endif; ?> <?php if($currency->code != 'USD'): ?> <a class="dropdown-item d-flex align-items-center gap-2 pointer" data-bs-toggle="offcanvas" data-bs-target="#offcanvas-currency-<?php echo e(str_replace(' ', '-', $currency->code)); ?>"> <i class="fi fi-rr-pen-circle mt-1"></i> <?php echo e(translate('edit')); ?> </a> <?php else: ?> <a class="dropdown-item d-flex align-items-center gap-2"> <i class="fi fi-rr-pen-circle mt-1"></i> <?php echo e(translate('edit')); ?> </a> <?php endif; ?> <?php if(in_array($currency->id, [1, 2, 3, 4, 5, 6, 7])): ?> <button class="align-items-center d-flex dropdown-item gap-2 default-currency-delete-alert"> <i class="fi fi-rr-trash mt-1"></i> <?php echo e(translate('delete')); ?> </button> <?php else: ?> <button class="align-items-center d-flex dropdown-item gap-2" data-bs-toggle="modal" data-bs-target="#currencyDeleteModal<?php echo e($currency->id); ?>"> <i class="fi fi-rr-trash mt-1"></i> <?php echo e(translate('delete')); ?> </button> <?php endif; ?> </div> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <div class="table-responsive mt-4"> <div class="px-4 d-flex justify-content-lg-end"> <?php echo e($currencies->links()); ?> </div> </div> <?php if(count($currencies) == 0): ?> <?php echo $__env->make('layouts.admin.partials._empty-state', ['text' => 'no_currency_found'], ['image'=>'default'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <?php endif; ?> </div> </div> </div> <?php echo $__env->make("admin-views.system-setup.currency._currency-offcanvas", array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </div> <span id="get-currency-warning-message" data-title="<?php echo e(translate('Warning')); ?>!" data-message="<?php echo e(translate('default_currency_can_not_be_deleted').' ! '. translate('to_delete_change_the_default_currency_first').' !'); ?>"></span> <span id="get-delete-currency-message" data-success="<?php echo e(translate('currency_removed_successfully').'!'); ?>" data-warning="<?php echo e(translate('this_Currency_cannot_be_removed_due_to_payment_gateway_dependency').'!'); ?>"></span> <div class="modal fade" id="defaultCurrencyChangeModal" tabindex="-1" aria-labelledby="defaultCurrencyChangeModal" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content shadow-lg"> <div class="modal-header border-0 pb-0 d-flex justify-content-end"> <button type="button" class="btn-close border-0 btn-circle bg-section2 shadow-none" data-bs-dismiss="modal" aria-label="Close"> </button> </div> <div class="modal-body px-20 pb-20 pt-0"> </div> </div> </div> </div> <?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key =>$currency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <form action="<?php echo e(route('admin.system-setup.currency.delete')); ?>" method="post"> <?php echo csrf_field(); ?> <input type="hidden" name="id" value="<?php echo e($currency->id); ?>"> <div class="modal fade" id="currencyDeleteModal<?php echo e($currency->id); ?>" tabindex="-1" aria-labelledby="currencyDeleteModal<?php echo e($currency->id); ?>" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header border-0 pb-0 d-flex justify-content-end"> <button type="button" class="btn-close border-0 btn-circle bg-section2 shadow-none" data-bs-dismiss="modal" aria-label="Close"> </button> </div> <div class="modal-body px-20 py-0 mb-30"> <div class="d-flex flex-column align-items-center text-center mb-30"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/modal/delete.png')); ?>" width="80" class="mb-20" id="" alt=""> <h2 class="modal-title mb-3"> <?php echo e(translate('want_to_clean_database').' ?'); ?> </h2> <div class="text-center"> <?php echo e(translate('are_you_sure_want_to_cleaned_the_selected_database').' ?'); ?> <?php echo e(translate('it_will_be_permanently_deleted_from_your_database')); ?> </div> </div> <div class="d-flex justify-content-center gap-3"> <button type="button" class="btn btn-secondary max-w-120 flex-grow-1" data-bs-dismiss="modal"> <?php echo e(translate('No')); ?> </button> <button type="<?php echo e(getDemoModeFormButton(type: 'button')); ?>" class="btn btn-danger max-w-120 flex-grow-1 <?php echo e(getDemoModeFormButton(type: 'class')); ?>" data-bs-dismiss="modal"> <?php echo e(translate('Yes_Delete')); ?> </button> </div> </div> </div> </div> </div> </form> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php echo $__env->make("layouts.admin.partials.offcanvas._currency-setup", array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <script src="<?php echo e(dynamicAsset(path: 'public/assets/backend/admin/js/system-setup/system-setup.js')); ?>"></script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/forge/drmariampharmacy.com/resources/views/admin-views/system-setup/currency/view.blade.php ENDPATH**/ ?>