@extends('admin.layouts.app')

@section('panel')


     

    <div class="row">
        <div class="col-lg-12">
            
		
        <div class="row row5">
		    <div class="col-md-6 mb-2 search-form">
		    <form class="ajaxFormSubmit">
				<div class="d-inline-block form-group form-group-feedback form-group-feedback-right">
				<input type="text" name="searchKey" placeholder="Search User" class="form-control"></div> 
				<div class="d-inline-block"><button class="btn btn-primary">
				  Load
				</button> <button type="button" class="btn btn-light">
				  Reset
				</button>
				</div>
			</form>
			</div> 
			<div class="col-md-6 text-right">
				<div class="d-inline-block">
				<div id="export_1735921540715" class="d-inline-block">
				<button type="button" class="btn mr-1 btn-success"><i class="fas fa-file-excel"></i></button>
				</div> 
				<button type="button" class="btn btn-danger"><i class="fas fa-file-pdf"></i></button>
				</div> 
				<form  class="d-inline-block">
					<div class="d-inline-block form-group form-group-feedback form-group-feedback-right">
					<input type="password" name="masterPassword" placeholder="Transaction Code" data-vv-as="Transaction Code" class="form-control" aria-required="true" aria-invalid="false">
					</div> 
					<div class="d-inline-block">
					<button  class="btn btn-primary">Transfer All </button>
					</div>
				</form>
			</div>
		</div>

	
		<table id="eventsListTbl" role="table" aria-busy="false" aria-colcount="9" class="table b-table">
		    <!---->
		    <colgroup>
				<col style="width: 200px;"><col style="width: auto;">
				<col style="width: auto;"><col style="width: auto;">
				<col style="width: auto;"><col style="width: auto;">
				<col style="width: auto;"><col style="width: 250px;">
				<col style="width: 200px;">
			</colgroup>
			

		    <thead role="rowgroup" class="">
		     <!---->
		     <tr role="row" class="">
				  <th role="columnheader" scope="col" aria-colindex="1" class="">
				  <div>User Name</div>
				  </th>
				  <th role="columnheader" scope="col" aria-colindex="2" class="text-right">
				  <div>CR</div>
				  </th>
				  <th role="columnheader" scope="col" aria-colindex="3" class="text-right">
				  <div>pts</div>
				  </th>
				  <th role="columnheader" scope="col" aria-colindex="4" class="text-right">
				  <div>Client(P/L)</div>
				  </th>
				  <th role="columnheader" scope="col" aria-colindex="5" class="text-right">
				  <div>Exposure</div>
				  </th>
				  <th role="columnheader" scope="col" aria-colindex="6" class="text-right">
				  <div>Available pts</div>
				  </th>
				  <th role="columnheader" scope="col" aria-colindex="7" class="">
				  <div>Account Type</div>
				  </th>
				   
				  <th role="columnheader" scope="col" aria-colindex="9" class="">
				  <div>Action</div>
				  </th>
				  <th role="columnheader" scope="col" aria-colindex="10" class="">
				  <div>Status</div>
				  </th>

			  </tr>
			  
			</thead>
			  
			<tbody role="rowgroup"><!---->
			   <tr role="row" class="">
				  <td aria-colindex="1" role="cell" class=""><span title="Maxi108 (Maxi)" class="text-ellipsis">Maxi108</span></td>
				  <td aria-colindex="2" role="cell" class=""><p class="text-right mb-0">0</p></td>
				  <td aria-colindex="3" role="cell" class=""><p class="text-right mb-0">0</p></td>
				  <td aria-colindex="4" role="cell" class=""><p class="text-right mb-0">0</p></td>
				  <td aria-colindex="5" role="cell" class=""><p class="text-right mb-0">0</p></td>
				  <td aria-colindex="6" role="cell" class=""><p class="text-right mb-0">0</p></td>
				  <td aria-colindex="7" role="cell" class="">User</td>				  
				  
				  <td aria-colindex="8" role="cell" class="">
				  <a href="javascript:void(0)" class="text-success">All <i class="fas fa-arrow-right"></i></a> 
				  <input type="number" name="amount" placeholder="0" class="form-control form-control-sm transfer-amt"> 
				  </td>
				  <td aria-colindex="9" role="cell" class="">
					<button class="btn btn--primary w-100 h-45">
					  Submit
					</button>
				  </td>
				   
				 
			   </tr>
					
				
				<tr role="row" class="">
					<td aria-colindex="1" role="cell" class=""><span title="Rockey108 (rockey)" class="text-ellipsis">Rockey108</span></td>
					<td aria-colindex="2" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="3" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="4" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="5" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="6" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="7" role="cell" class="">User</td>
					<td aria-colindex="8" role="cell" class="">
					  <a href="javascript:void(0)" class="text-success">All <i class="fas fa-arrow-right"></i></a> 
					  <input type="number" name="amount" placeholder="0" class="form-control form-control-sm transfer-amt"> 
					</td>
					<td aria-colindex="9" role="cell" class="">
						<button class="btn btn--primary w-100 h-45">
						  Submit
						</button>
					</td>
				</tr>
				<tr role="row" class="">
					<td aria-colindex="1" role="cell" class=""><span title="Roxx108 (Ramesh)" class="text-ellipsis">Roxx108</span></td>
					<td aria-colindex="2" role="cell" class=""><p class="text-right mb-0">99,000</p></td>
					<td aria-colindex="3" role="cell" class=""><p class="text-right mb-0">0.95</p></td>
					<td aria-colindex="4" role="cell" class=""><p class="text-right mb-0">-98,999.05</p></td>
					<td aria-colindex="5" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="6" role="cell" class=""><p class="text-right mb-0">0.95</p></td>
					<td aria-colindex="7" role="cell" class="">User</td>
					<td aria-colindex="8" role="cell" class="">
					  <a href="javascript:void(0)" class="text-success">All <i class="fas fa-arrow-right"></i></a> 
					  <input type="number" name="amount" placeholder="0" class="form-control form-control-sm transfer-amt"> 
					</td>
					<td aria-colindex="9" role="cell" class="">
						<button class="btn btn--primary w-100 h-45">
						  Submit
						</button>
					</td>
				</tr>
				<tr role="row" class="">
					<td aria-colindex="1" role="cell" class=""><span title="sonurbrt (Sonu)" class="text-ellipsis">sonurbrt</span></td>
					<td aria-colindex="2" role="cell" class=""><p class="text-right mb-0">1,749</p></td>
					<td aria-colindex="3" role="cell" class=""><p class="text-right mb-0">0.7</p></td>
					<td aria-colindex="4" role="cell" class=""><p class="text-right mb-0">-1,748.3</p></td>
					<td aria-colindex="5" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="6" role="cell" class=""><p class="text-right mb-0">0.7</p></td>
					<td aria-colindex="7" role="cell" class="">User</td>
					<td aria-colindex="8" role="cell" class="">
					  <a href="javascript:void(0)" class="text-success">All <i class="fas fa-arrow-right"></i></a> 
					  <input type="number" name="amount" placeholder="0" class="form-control form-control-sm transfer-amt"> 
					</td>
					<td aria-colindex="9" role="cell" class="">
						<button class="btn btn--primary w-100 h-45">
						  Submit
						</button>
					</td>
				</tr>
				<tr role="row" class="">
					<td aria-colindex="1" role="cell" class=""><span title="subham11277 (rbrt)" class="text-ellipsis">subham11277</span></td>
					<td aria-colindex="2" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="3" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="4" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="5" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="6" role="cell" class=""><p class="text-right mb-0">0</p></td>
					<td aria-colindex="7" role="cell" class="">User</td>
					<td aria-colindex="8" role="cell" class="">
					  <a href="javascript:void(0)" class="text-success">All <i class="fas fa-arrow-right"></i></a> 
					  <input type="number" name="amount" placeholder="0" class="form-control form-control-sm transfer-amt"> 
					</td>
					<td aria-colindex="9" role="cell" class="">
						<button class="btn btn--primary w-100 h-45">
						  Submit
						</button>
					</td>
				</tr><!----><!---->
		    </tbody><!---->
        </table>	
			

			
			
        </div>
    </div>
	
	
	
	
	
	
	
    <x-confirmation-modal />
	
	
	
	
	

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$(document).ready(function () {
    $('.left_head_grid span').click(function () {
        // Toggle the visibility of the grid_row_content div
        $('.grid_row_content').slideToggle();

        // Toggle the icon class within the span
        $(this).find('i').toggleClass('fa-angle-down fa-angle-up');
    });
});
</script>
    <style>
        body {
            margin: 0;
            padding: 0;
        }
       /* .grid_div{
            width: 800px;
        }*/
        .head_grid{
            background: #333;
            color: #fff;
            padding:10px;
            border-radius: 2px;
        }
        .left_head_grid{
            float: left;
            cursor: pointer;
        }   
        .left_head_grid span{
            color:#fff;
        }   
        .right_head_grid{
            float:right;
        }
        .right_head_grid a{
            background: #f18521;
            color: #fff;
            display: inline-block;
            width: 100px;
            text-align: center;
            text-decoration: none;
            font-size: 14px;
            height: 30px;
            line-height: 30px;
            border-radius: 5px;
        }
        .grid_row_content .grid_row_one{
            padding:2px 0;
            border-bottom: 1px solid rgba(0, 0, 0, .07);
        }
        .grid_row_content .grid_row_one .col_one1{
            float:left;
/*            width: 85%;*/
        }
        .grid_row_content .grid_row_one .col_one1 span{
            display: block;
            padding-left: 10px;
        }
        .grid_row_content .grid_row_one .col_one1 span.playr_count.text-right{
            text-align: right;
        }
        .grid_row_content .grid_row_one .col_one2 {
            float:right;
        }
        .grid_row_content .grid_row_one .col_one2 .btn01{
            background: #72bbef;
            color: #333;
            width: 80px;
            /* height: 35px; */
            border-radius: 3px;
            text-align: center;
            padding: 3px 0;
            display: inline-block;
        }
        .grid_row_content .grid_row_one .col_one2 .btn01.blue{
            background: #72bbef;
        }

        .grid_row_content .grid_row_one .col_one2 .btn01.pink{
            background: #e16f9a;
        }

        .grid_row_content .grid_row_one .col_one2 .btn01.green{
            background: #34c38f;
        }
        .grid_row_content .grid_row_one .col_one2 .btn01.red{
            background: #f46a6a;
        }

        .grid_row_content .grid_row_one .col_one2 .btn01 span{
            display: block;
            line-height: 18px;
            font-size: 16px;
            color:#000;
        }

        .grid_row_content .grid_row_one .col_one2 .btn01 span.strong{
            font-weight: 600;
        }

    </style>
	
	
	
	
	
	
	
	
	
	
	
	
	

    <div class="offcanvas offcanvas-end" id="offcanvasRight" aria-labelledby="offcanvasRightLabel" tabindex="-1">
        <div class="offcanvas-header">
            <h5 id="offcanvasRightLabel">@lang('Filter by')</h5>
            <button class="close bg--transparent" data-bs-dismiss="offcanvas" type="button" aria-label="Close">
                <i class="las la-times"></i>
            </button>
        </div>
        <div class="offcanvas-body">
            <form action="">
                <div class="form-group">
                    <label>@lang('Team One')</label>
                    <select class="form-control select2-basic" name="team_one_id">
                        <option value="">@lang('All')</option>
                       
                    </select>
                </div>
                <div class="form-group">
                    <label>@lang('Team Two')</label>
                    <select class="form-control select2-basic" name="team_two_id">
                        <option value="">@lang('All')</option>
                        
                    </select>
                </div>
                <div class="form-group">
                    <label>@lang('Leauge')</label>
                    <select class="form-control select2-basic" name="league_id">
                        <option value="">@lang('All')</option>
                       
                    </select>
                </div>
                <div class="form-group">
                    <label>@lang('Game Started From')</label>
                    <input name="start_time" type="search" class="datepicker-here form-control bg--white pe-2 date-range" placeholder="@lang('Start Date - End Date')" autocomplete="off" value="{{ request()->start_time }}">
                </div>
                <div class="form-group">
                    <label>@lang('Bet Started From')</label>
                    <input name="bet_start_time" type="search" class="datepicker-here form-control bg--white pe-2 date-range" placeholder="@lang('Start Date - End Date')" autocomplete="off" value="{{ request()->bet_start_time }}">
                </div>
                <div class="form-group">
                    <label>@lang('Bet Ended At')</label>
                    <input name="bet_end_time" type="search" class="datepicker-here form-control bg--white pe-2 date-range" placeholder="@lang('Start Date - End Date')" autocomplete="off" value="{{ request()->bet_end_time }}">
                </div>
                <div class="form-group">
                    <button class="btn btn--primary w-100 h-45"> @lang('Filter')</button>
                </div>
            </form>
        </div>
    </div>
@endsection

@push('style')
    <style>
        .thumb img {
            width: 30px;
            height: 30px;
        }
    </style>
@endpush

@push('breadcrumb-plugins')
    <button class="btn btn-sm btn-outline--info " data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" type="button" aria-controls="offcanvasRight"><i class="las la-filter"></i> @lang('Filter')</button>
    <a class="btn btn-sm btn-outline--primary " href="{{ route('admin.game.create') }}"><i class="las la-plus"></i>@lang('Add New')</a>
@endpush

@push('script-lib')
    <script src="{{ asset('assets/admin/js/moment.min.js') }}"></script>
    <script src="{{ asset('assets/global/js/daterangepicker.min.js') }}"></script>
@endpush

@push('style-lib')
    <link rel="stylesheet" type="text/css" href="{{ asset('assets/global/css/daterangepicker.css') }}">
@endpush
@push('script')
    <script>
        (function($) {
            "use strict"

            const datePicker = $('.date-range').daterangepicker({
                autoUpdateInput: false,
                locale: {
                    cancelLabel: 'Clear'
                },
                showDropdowns: true,
                ranges: {
                    'Today': [moment(), moment()],
                    'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
                    'Last 7 Days': [moment().subtract(6, 'days'), moment()],
                    'Last 15 Days': [moment().subtract(14, 'days'), moment()],
                    'Last 30 Days': [moment().subtract(30, 'days'), moment()],
                    'This Month': [moment().startOf('month'), moment().endOf('month')],
                    'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')],
                    'Last 6 Months': [moment().subtract(6, 'months').startOf('month'), moment().endOf('month')],
                    'This Year': [moment().startOf('year'), moment().endOf('year')],
                },
                maxDate: moment()
            });
            const changeDatePickerText = (event, startDate, endDate) => {
                $(event.target).val(startDate.format('MMMM DD, YYYY') + ' - ' + endDate.format('MMMM DD, YYYY'));
            }


            $('.date-range').on('apply.daterangepicker', (event, picker) => changeDatePickerText(event, picker.startDate, picker.endDate));


            if ($('.date-range').val()) {
                let dateRange = $('.date-range').val().split(' - ');
                $('.date-range').data('daterangepicker').setStartDate(new Date(dateRange[0]));
                $('.date-range').data('daterangepicker').setEndDate(new Date(dateRange[1]));
            }

        })(jQuery)
    </script>
@endpush
