@extends('base.base')
@section('base')
    <!-- 内容区域 -->
    <div class="main-panel">
        <div class="content-wrapper">
            <div class="page-header">
                <h3 class="page-title">
                     <span class="page-title-icon bg-gradient-primary text-white mr-2">
                        <i class="mdi mdi-settings"></i>
                    </span>
                    子游戏数据详情
                </h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">三方数据</a></li>
                        <li class="breadcrumb-item active" aria-current="page">子游戏数据详情</li>
                    </ol>
                </nav>
            </div>
            <div class="row">
                <div class="col-lg-12 grid-margin stretch-card">
                    <div class="card">
                        <div class="card-body">
                            <h4 class="card-title">子游戏数据详情</h4>

                                <table class="table table-bordered">
                                    <thead>
                                    <tr>
                                        <th>子游戏</th>
                                        <th>当天下注</th>
                                        <th>当天用户赢</th>
                                        <th>当天平台输赢</th>
                                        <th>当天游戏用户数</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    @foreach($subDetail as $subGame=>$subItem)
                                        <tr>
                                            <td>{{$subGame}}</td>
                                            <td>{{$subItem['current_bet']/100}}</td>
                                            <td>{{$subItem['current_win']/100}}</td>
                                            <td>{{($subItem['current_bet']-$subItem['current_win'])/100}}</td>
                                            <td>{{$subItem['current_play']}}</td>

                                        </tr>
                                   @endforeach
                                    </tbody>
                                </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
