@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-calendar-multiple"></i>
                    </span>
                    Superball 每日数据
                </h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">活动管理</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Superball 每日数据</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>
                                    <th>每个球的奖励(展示)</th>
                                    <th>真实完成人数</th>
                                    <th>真实球数</th>
                                    <th>用户中奖球总数</th>
                                    <th>幸运奖励合计(展示)</th>
                                    <th>更新时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $v)
                                    <tr>
                                        <td>{{ $v->pool_date }}</td>
                                        <td>{{ $v->pool_amount_display ?? number_float($v->pool_amount / 100) }}</td>
                                        <td>{{ $v->total_balls }}</td>
                                        <td>{{ $v->completed_count }}</td>
                                        <td>{{ $v->lucky_number }}</td>
                                        <td>{{ $v->base_reward_per_ball_display ?? '0.00' }}</td>
                                        <td>{{ $v->real_user_completed_count ?? 0 }}</td>
                                        <td>{{ $v->real_total_balls ?? 0 }}</td>
                                        <td>{{ $v->winning_balls_count ?? 0 }}</td>
                                        <td>{{ $v->total_lucky_reward_display ?? '0.00' }}</td>
                                        <td>{{ $v->updated_at }}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                            <div class="box-footer clearfix">
                                共 <b>{{ $list->total() }}</b> 条，共 <b>{{ $list->lastPage() }}</b> 页
                                {!! $list->links() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
