@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>Game History:</h2>
                        <div class="winingseciotn">
                            <div class="tabbingsection">
                                <ul>
                                    <li><a class="activesection" href="{{ SITEURL }}gamehistory">Game Hist.</a></li>
                                    <li><a href="{{ SITEURL }}withdrawhistory">Withdraw Hist.</a></li>
                                    <li><a href="{{ SITEURL }}wallethistory">Wallet Hist.</a></li>
                                </ul>
                            </div>
                            <h3>Game Play Details :</h3>

                            <ul>
                                @forelse ($gameplayhistory as $gameplayhistorydata)
                                    <li>
                                        <p>
                                            Competition Exam: <strong>{{ $gameplayhistorydata->assignquestionname }}</strong>
                                            in <span>{{ $gameplayhistorydata->contestname }}</span> Contest You have Played
                                            <strong>&#x20B9;{{ number_format((float) $gameplayhistorydata->playedamount, 2) }}</strong>
                                            <span>{{ optional($gameplayhistorydata->createtime)->format('d-m-Y h:i:s A') }}</span>.
                                        </p>
                                    </li>
                                @empty
                                    <li><p>No game 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
