/home/kueuepay/public_html/resources/views/admin/sections/card-method-gateway/edit.blade.php
@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')
    <div class="custom-card">
        <div class="card-header">
            <h6 class="title">{{ __($page_title) }}</h6>
        </div>
        <div class="card-body">
            <form class="card-form" action="{{ setRoute('admin.card.method.gateway.update',$data->slug) }}" method="POST" enctype="multipart/form-data">
                @csrf
                @method("PUT")
                <div class="row mb-10-none">
                    <div class="col-xl-12 col-lg-12 form-group">
                        <label for="card-image">{{ __("Image") }}</label>
                        <div class="col-12 col-sm-6 m-auto">
                            @include('admin.components.form.input-file',[
                                'label'             => false,
                                'class'             => "file-holder m-auto",
                                'old_files_path'    => files_asset_path('card-method-gateway'),
                                'name'              => "image",
                                'old_files'         => old('image',@$data->image)
                            ])
                        </div>
                    </div>
                    
                        <div class="col-xl-8 col-lg-8 form-group">
                            <label>{{ __("Name") }}*</label>
                            <div class="input-group append">
                                <span class="input-group-text"><i class="las la-file-signature"></i></span>
                                <input type="hidden" class="form--control" name="slug" value="{{ @$data->slug }}">
                                <input type="text" class="form--control" readonly name="name" value="{{ @$data->name }}">
                            </div>
                        </div>
                        
                        <div class="col-xl-12 col-lg-12 form-group">
                            <div class="row" >
                                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 form-group">
                                    <label>{{ __("Publishable Key") }}*</label>
                                    <div class="input-group append">
                                        <span class="input-group-text"><i class="las la-key"></i></span>
                                        <input type="text" class="form--control" name="publishable_key" value="{{ @$data->credentials->publishable_key }}">
                                    </div>
                                </div>
                                <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 form-group">
                                    <label>{{ __("Secret key") }}*</label>
                                    <div class="input-group append">
                                        <span class="input-group-text"><i class="las la-key"></i></span>
                                        <input type="text" class="form--control" name="secret_key" value="{{ @$data->credentials->secret_key }}">
                                    </div>
                                </div>
                                                                
                            </div>
                        </div>
                    
                    <div class="col-xl-12 col-lg-12 form-group">
                        @include('admin.components.button.form-btn',[
                            'class'         => "w-100 btn-loading",
                            'text'          => __("Update"),
                            'permission'    => "admin.card.method.gateway.update"
                        ])
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
Best Practice

Best Practices

To ensure a smooth integration process and optimal performance, follow these best practices:

  1. Use secure HTTPS connections for all API requests.
  2. Implement robust error handling to handle potential issues gracefully.
  3. Regularly update your integration to stay current with any API changes or enhancements.