@include('user.inc.fetch')
@extends('layouts.atlantis.layout')
@Section('content')
		<div class="main-panel">
			<div class="content">
			    @php($breadcome = __('messages.dasbrd'))
				@include('user.atlantis.main_bar')
				<div class="page-inner mt--5">
					@include('user.atlantis.stat')
					<div id="prnt"></div>
					<div class="row">
					    	<div class="col-md-4">
							<div class="card"style="background-color: rgba(9,5,5,0.5) !important;color:orange;border:2px solid orange">
								<div class="card-header">
									<div class="card-title"><h2 style="color:orange">Total Withdrawal</h2> </div>
									<div class="card-category">
									    <?php
									        $total_wd = 0;
									        foreach($wd as $w)
									        {
    											$total_wd += $w->amount;
									        }
									    ?>
										<h1>{{$settings->currency.' '. $total_wd}}</h1>
									</div>
								</div>
								
							</div>
						
						</div>
						<div class="col-md-8">
							<div class="card"style="background-color: rgba(9,5,5,0.5) !important;">
								<div class="card-header">
									<div class="card-head-row">
										<div class="card-title" style="color:orange"><center><h2>Indices Market Index</h2></center></div>
										<div class="card-tools">											
										</div>
									</div>
								</div>
								<div class="card-body">
									
								<div style="height:669px; background-color: #1D2330; overflow:hidden; box-sizing: border-box; border: 1px solid #282E3B; border-radius: 4px; text-align: right; line-height:14px; font-size: 12px; font-feature-settings: normal; text-size-adjust: 100%; box-shadow: inset 0 -20px 0 0 #262B38; padding: 0px; margin: 0px; width: 100%;"><div style="height:649px; padding:0px; margin:0px; width: 100%;"><iframe src="https://widget.coinlib.io/widget?type=full_v2&theme=dark&cnt=10&pref_coin_id=1505&graph=yes" width="100%" height="645px" scrolling="auto" marginwidth="0" marginheight="0" frameborder="0" border="0" style="border:0;margin:0;padding:0;"></iframe></div><div style="color: #626B7F; line-height: 14px; font-weight: 400; font-size: 11px; box-sizing: border-box; padding: 2px 6px; width: 100%; font-family: Verdana, Tahoma, Arial, sans-serif;">
								   </div>
								</div>
							</div>
						</div>
					
					</div>

		
					
				</div>
				
				<div class="row">
						<div class="col-md-8">
							<div class="card">
								<div class="card-header">
									<div class="card-head-row">
										<div class="card-title">{{ __('messages.invstm_stat') }}</div>
										<div class="card-tools">											
										</div>
									</div>
								</div>
								<div class="card-body">
									<div class="chart-container">
										<canvas id="statisticsChart2"></canvas>
									</div>
									<div id="myChartLegend2"></div>
								</div>
							</div>
						</div>
						<div class="col-md-4">
							<div class="card card-primary">
								<div class="card-header">
									<div class="card-title">{{ __('messages.wthdrwl_stat') }} </div>
									<div class="card-category">
									    <?php
									        $total_wd = 0;
									        foreach($wd as $w)
									        {
    											$total_wd += $w->amount;
									        }
									    ?>
										<h1>{{$settings->currency.' '. $total_wd}}</h1>
									</div>
								</div>
								<div class="card-body pb-0">									
									<div class="pull-in">
										<canvas id="wd_stats"></canvas>
									</div>
								</div>
							</div>
							
						</div>
					</div>

				
			</div>

			 @include('user.inc.confirm_inv')

@endSection
			