<x-app-layout>
    <div class="">
        <div class="s-area">
            <p class="title-b">Staking</p>
            <div class="clearfix"></div>
            <ul class="nav nav-tabs sub-area" id="stakings" role="tablist">
                <li class="nav-item">
                    <a class="nav-link active" id="staking-tab" data-toggle="tab" href="#staking" role="tab"
                        aria-controls="staking" aria-selected="true">Staking</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{{ route('staking.history') }}" ><i class="fas fa-history"
                            style="margin-right: 5px;"></i> History</a>
                </li>
            </ul>
        </div>
        <div class="banner d-block d-md-none text-center m-auto" style="margin-top: 30px;">
            <div class="d-inline-block text-center m-auto"></div>
        </div>
        <div class="banner d-none d-md-block d-lg-none text-center m-auto" style="margin-top: 30px;">
            <div class="d-inline-block text-center m-auto">
                <!--banner-->
            </div>
        </div>
        <div class="banner d-none d-lg-block text-center" style="margin-top: 30px;">
            <div class="d-inline-block text-center m-auto">
                <!--banner-->
            </div>
        </div>
        <div class="tab-content withdraw-content" id="referralsContent">
            <div class="tab-pane fade show active" id="staking" role="tabpanel" aria-labelledby="staking-tab">
                <div class="f-area">
                    <p class="title">Information</p>
                    <p class="desc">Staking payments are made daily to your main balance, when the staking is completed, your funds are also returned to the main balance.</p>
                </div>
                <div class="row balances mt-5">
                    @foreach($data as $key=>$value)
                    <div class="col-md-3 px-0">
                        <div class="p-2">
                            <div class="card py-4">
                                <h2 class="px-4 mb-3 text-center font-weight-bold">{{$value->name}}</h2>
                                <p class="px-4 text-center font-weight-bold h2" style="color:#a43af5;">{{$value->daily_earning*365}}%</p>
                                <p class="text-center text-muted mb-4" style="font-size: 13px;">Annualized Percentage Yield</p>
                                <div class="iconCoin mx-auto">
                                    <img src="{{ asset('img/'.$value->currency->icon) }}" width="40" height="40" alt="btc">
                                </div>
                                <h2 class="text-center font-weight-bold text-muted">{{$value->duration}} Days</h2>
                                <a href="{{ route('staking.create', strtoupper($value->id)) }}" class="px-3">
                                    <div class="btn btn-outline-secondary withdrawB">Stake</div>
                                </a>
                            </div>
                        </div>
                    </div>
                    @endforeach
                </div>
            </div>
        </div>
        <div class="banner d-block d-md-none text-center m-auto" style="margin-top: 30px;">
            <div class="d-inline-block text-center m-auto">
                <!--banner-->
            </div>
        </div>
        <div class="banner d-none d-md-block d-lg-none text-center m-auto" style="margin-top: 30px;">
            <div class="d-inline-block text-center m-auto"></div>
        </div>
        <div class="banner d-none d-lg-block text-center" style="margin-top: 30px;">
            <div class="d-inline-block text-center m-auto"></div>
        </div>
        <x-footer></x-footer>
    </div>
</x-app-layout>