@extends('layouts.backend.app') @section('title', 'Payment Gateway Install') @section('head') @include('layouts.backend.partials.headersection',['title'=>'Edit ' . $gateway->name,'prev'=>route('merchant.gateway.index')]) @endsection @section('content')
@if (Session::has('message'))
{{ Session::get('message') }}
@endif
@csrf
{{ __('Customers will see this when checking out.') }}
@if ($gateway->is_auto == 0)
@php $info = $gateway->usergetwaycreds ? json_decode($gateway->usergetwaycreds->data) : '' @endphp
@endif
@if ($gateway->is_auto == 1)
{{ __('Test Credentials') }}
@php $exist_info = $gateway->usergetwaycreds ? json_decode($gateway->usergetwaycreds->sandbox) : []; $sandbox = ''; @endphp @foreach (json_decode($gateway->data) ?? [] as $key => $info)
@foreach ($exist_info as $k => $value) @if ($k == $key) @php $sandbox = $value @endphp @endif @endforeach
@endforeach
{{ __('Live Credentials') }}
@php $exist_info = $gateway->usergetwaycreds ? json_decode($gateway->usergetwaycreds->production) : []; $production = ''; @endphp @foreach (json_decode($gateway->data) ?? [] as $key => $info)
@foreach ($exist_info as $k => $value) @if ($k == $key) @php $production = $value @endphp @endif @endforeach
@endforeach
@endif
usergetwaycreds) ? ($gateway->usergetwaycreds->status ? 'checked' : '') : '' }}>
@endsection