@section('title', 'Amount Management')
@section('amount-management', 'active')
@include('adminDashboard.layout.header')

<div class="main-content">
    <section class="section">
        <div class="section-body">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-header">
                            <h4>Amount Management</h4>
                        </div>
                        <form action="{{ url('/admin/amount-management') }}" method="post">
                            @csrf
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Minimum Recharge Amount</label>
                                            <input type="number" step="0.1" required name="min_recharge_amount"
                                                class="form-control"
                                                value="{{ $payment_settings->min_recharge_amount }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Minimum Withdrawal Amount</label>
                                            <input type="number" step="0.1" required name="min_withdrawal_amount"
                                                class="form-control"
                                                value="{{ $payment_settings->min_withdrawal_amount }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Signin Bonus</label>
                                            <input type="number" step="0.1" required name="sign_in_bonus"
                                                class="form-control" value="{{ $payment_settings->sign_in_bonus }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Level1 Recharge Bonus(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="level1_recharge_bonus" class="form-control"
                                                value="{{ $payment_settings->level1_recharge_bonus }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Level2 Recharge Bonus(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="level2_recharge_bonus" class="form-control"
                                                value="{{ $payment_settings->level2_recharge_bonus }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Level3 Recharge Bonus(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="level3_recharge_bonus" class="form-control"
                                                value="{{ $payment_settings->level3_recharge_bonus }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Withdrawal Charges(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="withdrawal_charges" class="form-control"
                                                value="{{ $payment_settings->withdrawal_charges }}">
                                        </div>
                                    </div>
                                    @if (env('EACH_RECHARGE_BONUS', false))
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label>Each Recharge Bonus (%)</label>
                                                <input type="number" step="0.1" required name="after_first_bonus"
                                                    class="form-control"
                                                    value="{{ $payment_settings->after_first_bonus }}">
                                            </div>
                                        </div>
                                    @endif
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>First Recharge Bonus (%)</label>
                                            <input type="number" step="0.1" required name="first_bonus"
                                                class="form-control" value="{{ $payment_settings->first_bonus }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Opening Bonus</label>
                                            <input type="number" step="0.1" required name="open_bonus"
                                                class="form-control" value="{{ $payment_settings->open_bonus }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Level1 Bet Commission(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="level1_bet_commission" class="form-control"
                                                value="{{ $payment_settings->level1_bet_commission }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Level2 Bet Commission(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="level2_bet_commission" class="form-control"
                                                value="{{ $payment_settings->level2_bet_commission }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Level3 Bet Commission(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="level3_bet_commission" class="form-control"
                                                value="{{ $payment_settings->level3_bet_commission }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Interest Rate(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="interest_rate" class="form-control"
                                                value="{{ $payment_settings->interest_rate }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Bet Fee(%)</label>
                                            <input type="number" step="0.1" max="100" required
                                                name="bet_fee" class="form-control"
                                                value="{{ $payment_settings->bet_fee }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Color Multiple</label>
                                            <input type="number" step="0.1" required name="color_multiple"
                                                class="form-control" value="{{ $payment_settings->color_multiple }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Color Red Or Green And Number 0 Or 5 Multiple</label>
                                            <input type="number" step="0.1" required
                                                name="red_green_with_0_5_multiple" class="form-control"
                                                value="{{ $payment_settings->red_green_with_0_5_multiple }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Color Violet And Number 0 Or 5 Multiple</label>
                                            <input type="number" step="0.1" required
                                                name="violet_with_0_5_multiple" class="form-control"
                                                value="{{ $payment_settings->violet_with_0_5_multiple }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Number (1 Color) Multiple</label>
                                            <input type="number" step="0.1" required
                                                name="number_one_color_multiple" class="form-control"
                                                value="{{ $payment_settings->number_one_color_multiple }}">
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label>Number (2 Color) Multiple</label>
                                            <input type="number" step="0.1" required
                                                name="number_two_color_multiple" class="form-control"
                                                value="{{ $payment_settings->number_two_color_multiple }}">
                                        </div>
                                    </div>


                                </div>

                            </div>
                            <div class="card-footer text-right">
                                <button class="btn btn-primary mr-1" type="submit">Save</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>

@include('adminDashboard.layout.footer')
