@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' => __("Add Money")]) @endsection @section('content')
@csrf @method("PUT")
{{ __("Update Gateway") }} : {{ $gateway->name }}
@include('admin.components.form.input-file',[ 'label' => __("Gateway Image*"), 'name' => "image", 'class' => "file-holder", 'old_files' => $gateway->image, 'old_files_path' => files_asset_path('payment-gateways'), ])
@include('admin.components.payment-gateway.automatic.credentials',['gateway' => $gateway])
{{-- Production/Sandbox Switcher --}}
@include('admin.components.form.switcher', [ 'label' => __("Gateway Environment"), 'value' => old('mode',$gateway->env), 'name' => "mode", 'options' => [__('Production') => payment_gateway_const()::ENV_PRODUCTION, __('Sandbox') => payment_gateway_const()::ENV_SANDBOX], ])
{{-- Crypto details button --}} @if ($gateway->isTatum($gateway))
@include('admin.components.link.custom',[ 'href' => setRoute('admin.crypto.assets.gateway.index', $gateway->alias), 'permission' => 'admin.crypto.assets.gateway.index', 'text' => __("Crypto Assets"), 'icon' => 'las la-info-circle me-2', 'class' => 'btn--base', ])
@endif
@if ($gateway->isRazorpay($gateway)) {{ __("Callback URL") }}
{{ setRoute('user.add.money.payment.callback',[$gateway->alias, 'token' => payment_gateway_const()::CALLBACK_HANDLE_INTERNAL]) }} @endif
@include('admin.components.payment-gateway.automatic.supported-currencies',compact('gateway'))
@include('admin.components.payment-gateway.automatic.gateway-currency',compact('gateway'))
@include('admin.components.button.form-btn',[ 'class' => "w-100 btn-loading", 'text' => __("update"), 'permission' => "admin.payment.gateway.update", ])
@endsection @push('script') @endpush