
@extends('layouts.app1')
@section('content')

    <br><br>

<title>{{Auth::user()->name}} | Dashboard</title>



<!-- <div class="wrapper-content"> -->
<div class="row" style="margin-top:-20px">
     <div class="col-md-16 col-lg-16 col-xl-16">
          <div class="activity-block success" id="bck">
               <div class="media">
                    <div class="media-body">
                         <a href="{{ url('dashboard/accounthistory') }}"><button type="button" class="btn btn-success"><i class="fa fa-exchange"></i> Trading History</button></a>
                         <a href="{{ route('profile') }}"><button type="button" style="float:right" class="btn btn-danger"><i class="fa fa-gears"></i> Settings</button></a>
                         <hr>
                         <a href="{{ url('dashboard/deposit_hist') }}"><button type="button" style="float:center" class="btn btn-success"><i class="fa fa-exchange"></i> View Transactions</button></a>
                                                       <a href="{{ url('dashboard/signal') }}"><button type="button" style="float:right" class="btn btn-success"><i class="fa fa-signal"></i> Signal Purchase</button></a>
                                                  <br>
                         <hr> 
                         <a style="float:left;font-size:20px;font-weight:bold">Registration Date</a>
                         <a style="float:right;font-size:18px;letter-spacing:1px">{{\Carbon\Carbon::parse(Auth::user()->created_at)->toDayDateTimeString()}}</a>
                         <br>
                         
                         
                         <hr>
                         <a style="float:left;font-size:20px;font-weight:bold">Package</a>
                          @if(Auth::user()->upgrade)
                         <a style="float:right;font-size:18px;letter-spacing:3px">{{ Auth::user()->upgrade}}</a>
                         @else
                         <a style="float:right;font-size:18px;letter-spacing:3px">None</a>
                         @endif
                         
                         <br>
                         <hr>
                         <a style="float:left;font-size:20px;font-weight:bold"> Signal </a>
                         @if(Auth::user()->signalacount)
                         <a style="float:right;font-size:18px;letter-spacing:3px">{{Auth::user()->signalacount}}</a>
                         @else
                         <a style="float:right;font-size:18px;letter-spacing:3px">None</a>
                         @endif
                         <br>
                         <hr>
                         <a style="float:left;font-size:20px;font-weight:bold">Account Type</a>
                         <a style="float:right;font-size:18px;letter-spacing:1px">{{ Auth::user()->account_type}}<br></a>
                         <br><br>
                         <hr>
                         <a style="float:left;font-size:20px;font-weight:bold">Account Status</a>
                          @if(Auth::user()->account_verify == 'Verified')	
                         <a style="float:right;font-size:20px;letter-spacing:3px"><b class='bg-success'>Verified</b></a>
                          @else
                          <a style="float:right;font-size:20px;letter-spacing:3px"><b class='bg-warning'>{{Auth::user()->account_verify}}</b></a>
                           @endif
                         <br>
                         <hr>
                         <h6 style="float:left">
                              NOTIFICATION:
                         </h6><br>
                         <marquee></marquee>
                    </div>
                    <i class="fa ffa fa-"></i>
               </div>
               <br>
               <div class="row">
                    <div class="progress ">
                         <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 39%;"><span class="trackerball"></span></div>
                    </div>
               </div>
               <i class="bg-icon text-center fa fa-user"></i>
          </div>
     </div>
</div>
<br><br>












<div class="row" style="margin-top:-50px">
     <div class="col-md-16 col-lg-16 col-xl-16">

                         <!-- TradingView Widget BEGIN -->
               <div class="tradingview-widget-container">
                    <div id="tradingview_e705a" style="height:550px"></div>
                    <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
                    <script type="text/javascript">
                         new TradingView.widget({
                              "autosize": true,
                              "symbol": "NASDAQ:AAPL",
                              "interval": "1",
                              "timezone": "America/New_York",
                              "theme": "dark",
                              "style": "1",
                              "locale": "en",
                              "toolbar_bg": "#f1f3f6",
                              "enable_publishing": false,
                              "hide_side_toolbar": false,
                              "allow_symbol_change": true,
                              "details": true,
                              "studies": [
                                   "AwesomeOscillator@tv-basicstudies",
                                   "MACD@tv-basicstudies"
                              ],
                              "container_id": "tradingview_e705a"
                         });
                    </script>
               </div>
               <!-- TradingView Widget END -->
               </div>
</div><br><br>



<div class="row">
  <div class="col-md-12">
    <div class="form-group row">
      <div class="col-6">
        <button type="button" onclick="referralFunction()" class="btn btn-success">Copy Referral Link</button>
      </div>
      <div class="col-10">
        <input type="text" style="color:black" class="form-control" id="referral_link" value="{{Auth::user()->ref_link}}" readonly="">
      </div>
    </div>
  </div>



  <script>
    function referralFunction() {
      var copyReferral = document.getElementById("referral_link");
      copyReferral.select();
      copyReferral.setSelectionRange(0, 99999);
      document.execCommand("copy");
      Swal.fire('', '<b>Referral Link Copied :</b> ' + copyReferral.value + '', '', '');
    }
  </script>







  <!-- TradingView Widget END -->



  
   @endsection