<x-admin.layout :hasExtraSettings="true">

    <div class="nk-block-head nk-block-head-sm">
        <div class="nk-block-between">
            <div class="nk-block-head-content">
                <h3 class="nk-block-title page-title">Deposit Settings</h3>
            </div>
            <div class="nk-block-head-content">
                <ul class="nk-block-tools gx-1">
                    <li class="d-lg-none">
                        <a href="#" class="btn btn-icon btn-trigger toggle" data-target="pageSidebar"><em class="icon ni ni-menu-right"></em></a>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <div class="nk-block card card-bordered">
        <div class="card-inner">
            <div class="cart-header mb-3">Basic  Settings</div>
            <div class="row g-gs p-3">
                <div class="col-md-6">
                    <div class="form-group">
                        <div class="custom-control custom-control-sm custom-switch">
                            <input
                                type="checkbox"
                                class="custom-control-input"
                                id="en_deposit"
                                @if(config('settings.enable_deposits')==1) checked  @endif
                            >
                            <label class="custom-control-label" for="en_deposit">Deposits</label>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <div class="custom-control custom-control-sm custom-switch">
                            <input
                                type="checkbox"
                                class="custom-control-input"
                                id="bank_deposit"
                                @if(config('settings.bank_deposit')==1) checked  @endif
                            >
                            <label class="custom-control-label" for="bank_deposit">Bank Deposits</label>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <div class="custom-control custom-control-sm custom-switch">
                            <input
                                type="checkbox"
                                class="custom-control-input"
                                id="crypto_deposit"
                                @if(config('settings.crypto_deposit')==1) checked  @endif
                            >
                            <label class="custom-control-label" for="crypto_deposit">Crypto Deposits</label>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>


    <div class="nk-block card card-bordered">
        <div class="card-inner">
            <div class="cart-header mb-3">Bank Deposit Settings</div>
            <form class="form-validate is-alter" id="b_d_fd">
                @csrf
                <div class="row g-gs p-3">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="form-label">Bank Name</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_bank_name') }}" name="bank_name" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label">Bank Address</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_bank_address') }}" name="bank_address" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label">Account Number</label>
                            <div class="form-control-wrap">
                                <input type="number" class="form-control form-control-sm" value="{{ config('settings.app_bank_account_number') }}" name="account_number" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label">Account Name</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_bank_account_name') }}" name="account_name" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label">Swift Code</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_bank_swift_code') }}" name="swift_code" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label">IBAN Code</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_bank_iban_code') }}" name="iban_code" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="form-group">
                            <button type="submit" class="btn btn-sm btn-primary">Save</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="nk-block card card-bordered">
        <div class="card-inner">
            <div class="cart-header mb-3">Crypto Deposit Settings ({{ ucwords(config('settings.app_wallet_name')) }})</div>
            <form class="form-validate is-alter"  id="c_d_fd">
                @csrf
                <div class="row g-gs p-3">
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label">Wallet Name</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_wallet_name') }}" name="wallet_name" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label">Wallet Short Name</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_short_name') }}" name="wallet_short_name" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label">{{ ucwords(config('settings.app_wallet_name')) }} Wallet Address</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_wallet_address') }}" name="app_wallet_address" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="form-group">
                            <button type="submit" class="btn btn-sm btn-primary">Save</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>

</x-admin.layout>
