@extends('admin.layouts.master') @push('css') @endpush @section('page-title') @include('admin.components.page-title',['title' => __($page_title)]) @endsection @section('breadcrumb') @include('admin.components.breadcrumb',['breadcrumbs' => [ [ 'name' => __("Dashboard"), 'url' => setRoute("admin.dashboard"), ] ], 'active' => __($page_title)]) @endsection @section('content') {{-- api key update --}}
{{ __($page_title) }}
@csrf @method("PUT")
@include('admin.components.button.form-btn',[ 'class' => "w-100 btn-loading", 'text' => __("update"), 'permission' => "admin.live.exchange.rate.update" ])
{{-- api key update --}} {{-- exchange rate update permission --}}
{{ __("Apply Permissions For The Exchange Rate API.") }}
{{ __("Currency Permision")}} @include('admin.components.form.switcher',[ 'name' => 'currency_module', 'value' => $provider->currency_module, 'options' => [__("Enable") => 1,__("Disable") => 0], 'onload' => true, 'data_target' => $provider->slug, 'permission' => "admin.live.exchange.rate.module.permission", ])
{{ __("Payment Gateway Permision")}} @include('admin.components.form.switcher',[ 'name' => 'payment_gateway_module', 'value' => $provider->payment_gateway_module, 'options' => [__("Enable") => 1,__("Disable") => 0], 'onload' => true, 'data_target' => $provider->slug, 'permission' => "admin.live.exchange.rate.module.permission", ])
{{-- exchange rate update permission --}} {{-- send exchange rate update request --}}
{{ __("Send API Request") }}
{{ __("Exchange Rate Update")}}
@csrf @method("PUT")
@include('admin.components.button.form-btn',[ 'class' => "w-100 btn-loading", 'text' => __("Send Request"), 'permission' => "admin.live.exchange.rate.send.request" ])
{{-- send exchange rate update request --}} {{-- check updated currency list --}}
{{ __("Exchange Currency Rate Updated By Currency Layer API") }}
{{ __("SCurrencies")}} : {{ count(updateAbleCurrency()['matching_currencies']) }} @foreach (updateAbleCurrency()['matching_currencies'] ?? [] as $code) {{ $code }} @endforeach
{{ __("Unsupported Currencies")}} : {{ count(updateAbleCurrency()['missing_currencies']) }} @foreach (updateAbleCurrency()['missing_currencies'] ?? [] as $code) {{ $code }} @endforeach
{{-- check updated currency list --}} @endsection @push('script') @endpush