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



    <br><br>

<title>{{$settings->site_name}} | Account Upgrade</title>



<h1 style="text-align:center;">Upgrade Account</h1>
<div style="float:center" class="row">
  <div class="col-sm-16 col-md-16">
    <div class="card">
      <div class="card-header">
        <span>
          <h3 style="color:crimson;text-align:center"></h3>
        </span>
      </div>
      <form method="post" action="{{route('upgradenewdeposit')}}">
        @csrf
        <div class="card-body">
          <div class="form-group row">
            <label for="example-text-input" class="col-16 col-form-label">Full Name<font color="crimson">*</font></label>
            <div class="col-16">
              <input class="form-control" type="hidden" name="uid" value="evaremedy" id="example-text-input">
              <input class="form-control" style="background:transparent" name="name" type="text" value="{{Auth::user()->name}}" id="example-text-input" readonly>
            </div>
          </div>
          

          <div class="form-group row">
            <label for="example-email-input" class="col-16 col-form-label">Email<font color="crimson">*</font></label>
            <div class="col-16">
              <input class="form-control" style="background:transparent" type="email" name="email" value="{{Auth::user()->email}}" id="example-email-input" readonly>
            </div>
          </div>
          <div class="form-group row">
            <label for="example-url-input" class="col-16 col-form-label">Select Package<font color="crimson">*</font></label>
            <div class="col-16">
              <input type="hidden" name="duration" value="{{$plan->expiration}}">
									
										<input type="hidden" name="_token" value="{{ csrf_token() }}">
              <select class="form-control"  name="plan" id="example-number-input" required>
                <option disabled selected>--Select Package --</option>
                @foreach ($plans as $plan)
                <option value="{{$plan->name}}">{{$plan->name}} {{$settings->currency}}{{$plan->price}}</option> 
                	
                @endforeach 
                
                 </select>
            </div>
          </div>
          <div class="form-group row">
            <label for="example-url-input" class="col-16 col-form-label">Select payment method<font color="crimson">*</font></label>
            <div class="col-16">
              <select class="form-control" value="" name="paymethod" id="example-number-input" required>
                <option disabled selected>-- Select Signal --</option>
                @foreach($dmethods as $dmethod)
                <option value="{{$dmethod->name}}">{{$dmethod->name}}</option>
                @endforeach
               
              </select>
            </div>
          </div>
          <div class="form-group row">
            <div class="col-16">
              <center><input class="btn btn-outline-success" type="submit" value="UPGRADE"></center>
            </div>
          
          </div>
      </form>
    </div>
  </div>
</div>
<hr>
<a href="{{ url('dashboard') }}"><button class="btn btn-dark" style="color:white"><i class="fa fa-undo"></i> Back to Account</button></a>
</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>



  




  

    @endsection