@extends('layouts.front')
@section('content')

<div class="container">
    <div class="row">
        <div class="col-sm-12">
            <div class="mobilesecitoninner">
                <div id="homepageseciton">
                    <div class="withdrawwalletamounrsecion">
                        <h2>Withdraw History:</h2>
                        <div class="winingseciotn">
                            <div class="tabbingsection">
                                <ul>
                                    <li><a href="{{ SITEURL }}gamehistory">Game Hist.</a></li>
                                    <li><a class="activesection" href="{{ SITEURL }}withdrawhistory">Withdraw Hist.</a></li>
                                    <li><a href="{{ SITEURL }}wallethistory">Wallet Hist.</a></li>
                                </ul>
                            </div>
                            <h3>Withdraw Details :</h3>

                            <ul>
                                @forelse ($withdrawhistory as $gameplayhistorydata)
                                    <li>
                                        <p>
                                            Received Gateway Selected <span>{{ $gameplayhistorydata->paymenttype }}</span>:
                                            Mobile No. <strong>{{ $gameplayhistorydata->mobilenumber }}</strong>
                                            You have Withdraw <strong>&#x20B9;{{ number_format((float) $gameplayhistorydata->withdrawamt, 2) }}</strong>
                                            <span>{{ optional($gameplayhistorydata->createdtime)->format('d-m-Y h:i:s A') }}</span>.
                                            <span class="btn btn-{{ $gameplayhistorydata->status_tone }}">{{ $gameplayhistorydata->status_label }}</span>
                                        </p>
                                    </li>
                                @empty
                                    <li><p>No withdraw history found yet.</p></li>
                                @endforelse
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
$( document ).ready(function() {
    $( ".playerlistseciton img" ).on( "click", function() {
       return false;
    });
});
</script>
@endsection
