<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">General 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>
            <form class="form-validate is-alter" id="g_s_fd" >
                @csrf
                <div class="row g-gs p-3">
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label" for="app_name">App Name</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_name') }}" name="app_name" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label" for="app_email">App Email</label>
                            <div class="form-control-wrap">
                                <input type="email" class="form-control form-control-sm" value="{{ config('settings.app_email') }}" name="app_email" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label" for="app_phone">App Phone</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_phone') }}" name="app_phone" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label" for="app_address">App Address</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_address') }}" name="app_address" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label" for="app_footer">Footer Copy Right</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_footer') }}" name="app_footer" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label" for="app_url">App Url</label>
                            <div class="form-control-wrap">
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_url') }}" name="app_url" required>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div class="form-group">
                            <label class="form-label" for="app_desc">App Description</label>
                            <div class="form-control-wrap">
                                <textarea class="form-control form-control-sm" name="app_desc" placeholder="Short description about webApp" required>{{ config('settings.app_desc') }}</textarea>
                            </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">Loan  Settings</div>
            <form class="form-validate is-alter" id="l_s_fd">
                @csrf
                <div class="row g-gs p-3">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="form-label" for="default-05">Maximum Loan Amount</label>
                            <div class="form-control-wrap">
                                <div class="form-text-hint">
                                    <span class="overline-title">Usd</span>
                                </div>
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.app_max_loan_amount') }}" name="maximum_loan_amount" required>
                                <div class="form-note">
                                    Maximum amount of loan user can apply for.
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label" for="maximum_loan_request">Maximum loan Rrequet</label>
                            <div class="form-control-wrap">
                                <input type="number" class="form-control form-control-sm" value="{{ config('settings.app_max_loan_request') }}" name="maximum_loan_request" required>
                                <div class="form-note">
                                    Maximum loan request a user can make.
                                </div>
                            </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">Transfer Settings</div>
            <form class="form-validate is-alter" id="t_f_fd">
                @csrf
                <div class="row g-gs p-3">
                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="form-label">Maximum Transfer Amount</label>
                            <div class="form-control-wrap">
                                <div class="form-text-hint">
                                    <span class="overline-title">Usd</span>
                                </div>
                                <input type="text" class="form-control form-control-sm" value="{{ config('settings.max_transfer_amount') }}" name="maximum_transfer_amount" required>
                                <div class="form-note">
                                    Maximum amount that can be transferred at once.
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="form-label" for="maximum_loan_request">Transfer Locked Mesage</label>
                            <div class="form-control-wrap">
                                <textarea class="form-control form-control-sm" name="transfer_lock_message" required>{{ config('settings.transfer_lock_message') }}</textarea>
                            </div>
                            <div class="form-note">
                                When you block a user from making transfers, the user will see this message.
                            </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>
