@extends('super_admins.layouts.master') @section('title') Edit Gateway @endsection @php $default_currency = App\Models\Currency::where('is_default' , 1)->first(); @endphp @section('css') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error) {{-- {{ $error }} --}} @endforeach @endif
{{--
--}}

Edit Gateway

@csrf @method('PUT')
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{--
@if ($errors->has('code')) {{ $errors->first('code') }} @endif
--}}
@if ($errors->has('currency')) {{ $errors->first('currency') }} @endif
@if ($errors->has('symbol')) {{ $errors->first('symbol') }} @endif
1 {{ $default_currency->symbol ?: 'USD' }} =
@if ($errors->has('convention_rate')) {{ $errors->first('convention_rate') }} @endif
@if ($errors->has('min_amount')) {{ $errors->first('min_amount') }} @endif
@if ($errors->has('max_amount')) {{ $errors->first('max_amount') }} @endif
@if ($errors->has('percentage_charge')) {{ $errors->first('percentage_charge') }} @endif
@if ($errors->has('fixed_charge')) {{ $errors->first('fixed_charge') }} @endif
@foreach ($gateway->parameters as $key => $parameter)
Please fill in the {{ str_replace('_', ' ', $key) }}
@if ($errors->has($key)) {{ $errors->first($key) }} @endif
@endforeach
@if ($gateway->extra_parameters)
@foreach ($gateway->extra_parameters as $key => $param)
@endforeach
@endif
@if ($gateway->image) {{ $gateway->name }}     @else -No Image Selected @endif {{-- --}} {{-- --}} @if ($errors->has('image')) {{ $errors->first('image') }} @endif
status) checked @endif class="custom-control-input" id="customSwitch1" aria-describedby="IsActiveError" aria-invalid="true">
@if ($errors->has('status')) {{ $errors->first('status') }} @endif

{{--
--}}
@include('super_admins.includes.image_cropper_modal') @endsection @section('scripts') @include('super_admins.includes.image_cropper_scripts') @endsection