@extends('layout.app')

@section('content')
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-body">
                    <form method="POST" action="{{ route('paymentGetwayUpdate', $paymentgetway->id) }}">
                        @csrf
                        <div class="row">
                            <div class="col-md-12">
                                <input type="hidden" name="reseller_id" value="{{ $paymentgetway->reseller_id }}">
                                <div class="form-group">
                                    <label for="paymentgetway">Payment Getway</label>
                                    <select name="getway_name" class="form-control">
                                        <option value="">Select Payment Getway</option>
                                        <option value="bkash" {{ ($paymentgetway->getway_name == 'bkash') ? 'selected' : '' }}>Bkash</option>
                                        <option value="nagad" {{ ($paymentgetway->getway_name == 'nagad') ? 'selected' : '' }}>Nagad</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label>App Key / Public Key</label>
                                    <input type="text" name="appkey_publickey" class="form-control"
                                        value="{{ $paymentgetway->appkey_publickey }}">
                                </div>

                                <div class="form-group">
                                    <label>Secret Key / Private Key</label>
                                    <input type="text" name="secretkey_privatekey" class="form-control"
                                    value="{{ $paymentgetway->secretkey_privatekey }}">
                                </div>

                                <div class="form-group">
                                    <label>Username / Merchantid</label>
                                    <input type="text" name="username_merchantid" class="form-control"
                                    value="{{ $paymentgetway->username_merchantid }}">
                                </div>

                                <div class="form-group">
                                    <label>Password / Merchant Number</label>
                                    <input type="text" name="password_merchantnumber" class="form-control"
                                    value="{{ $paymentgetway->password_merchantnumber }}">
                                </div>

                                <div class="form-group">
                                    <label>Base Url</label>
                                    <input type="text" name="base_url" class="form-control"
                                    value="{{ $paymentgetway->base_url }}">
                                </div>

                                <div class="form-group">
                                    <label>Callback Url</label>
                                    <input type="text" name="callback_url" class="form-control"
                                    value="{{ $paymentgetway->callback_url }}">
                                </div>

                                <div class="form-group">
                                    <label>Payer Reference</label>
                                    <input type="text" name="payer_reference" class="form-control"
                                    value="{{ $paymentgetway->payer_reference }}">
                                </div>

                            </div>
                        </div>
                        <button class="btn btn-primary" type="submit">Update Payment
                            Getway</button>
                    </form>
                </div>

            </div>
        </div>
    </div>


@endsection
