 @extends('admin.layouts.main-layout')
 @section('content')
<div class="card">
    
      <div class="card-body">
        <div class="card-header">
              <h3 class="card-title">Date : {{currentDate()}}</h3>
            <h3 class="card-title">{{$storessnew->name}} (Close): Total = ₹ {{$totalamount}}</h3>
            <h3 class="card-title">Result : {{$result->close_time}}</h3>
        </div>
        
        </div>
    
        
        <div class="card-body">
            @if(session()->has('message'))
                <div class="alert alert-success">
                    {{ session()->get('message') }}
                </div>
            @endif
            <div id="example1_wrapper" class=" dt-bootstrap4">
                <div class="row">
                    <div class="col-sm-12">
                         <div class='tablescroll'>
                            <div class="table-responsive">
                        <table id="example1" class="table table-bordered table-striped dataTable" role="grid"
                               aria-describedby="example1_info">
                            <thead>
                            <tr role="row">
                                
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                    aria-label="Browser: activate to sort column ascending" style="width: 207px;">
                                    Game
                                </th>
                                
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                    aria-label="Browser: activate to sort column ascending" style="width: 207px;">
                                 Rate
                                </th>
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                    aria-label="Browser: activate to sort column ascending" style="width: 207px;">
                                  Total Amount
                                </th>
                                
                                <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                    aria-label="Browser: activate to sort column ascending" style="width: 207px;">
                                 Giving Amount
                                </th>
                                
                                  <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                                    aria-label="Browser: activate to sort column ascending" style="width: 207px;">
                                 Action
                                </th>
                                
                                
                                
                              
                               
                                
                            </tr>
                            </thead>
                            <tbody>
                         
                  @forelse($game as $key => $list)
                
                        <tr>
                        
                          <td>
                          {{$list['name']}}
                          </td>
                           <td>
                               {{$list['rate']}}
                          </td>
                          <td>
                           {{$list['amount']}}
                          </td>
                          
                            <td>
                                
                          {{$list['winneramount']}}
                                 
                          </td>
                          
                           <td>
                                
                           <a href="{{ url('admin/newgameuserwinnerclose/'.$list['id'].'?store='.$storesid) }}" class="btn btn-info"><i class="fa fa-eye" aria-hidden="true"></i> </a>
                                 
                          </td>
                         
                        
                        </tr>
                         @empty
                  <tr>
                    <td colspan="6">Record not found </td>
                  </tr>
                  @endforelse
                            </tbody>
                   </table>
                   </div>
                   </div>
                  </div>
                </div>
              </div>
            </div>
          </div>


 @endsection
@section('js-content')
@endsection