@extends('admin.layouts.master') @php $pricison = get_precision($gateway); @endphp @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' => __("Automatic Withdraw Edit")]) @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], ])
@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