@php($user_data = user_details_data($id))
@php($user = $user_data['user'])
@php($dt = $user_data['dt'])
@extends('admin.atlantis.layout')
@Section('content')
        <div class="main-panel">
            <div class="content">
                @include('admin.atlantis.main_bar')
                <div class="page-inner mt--5">
                    @include('admin.atlantis.overview')
                    <div id="prnt"></div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="card">
                                <div class="card-header" style="background-color:{{$settings->header_color}}">
                                    <div class="card-head-row card-tools-still-right">
                                        <h4 class="card-title text-white"> {{ __('messages.usr_det_adm') }} </h4>
                                        <div class="card-tools">
                                            <a href="/admin/block/user/{{$user->id}}" > 
                                                <span class=""><i class="fa fa-ban btn btn-warning" ></i></span>
                                            </a>
                                            <a href="/admin/activate/user/{{$user->id}}" > 
                                                <span><i class="fa fa-check btn btn-success"></i></span>
                                            </a>
                                            @if($adm->role != 1)
                                                <a href="/admin/delete/user/{{$user->id}}" > 
                                                    <span class=""><i class="fa fa-times btn btn-danger"></i></span>
                                                </a>
                                            @endif
                                        </div>                                                                             
                                    </div>
                                </div>
                                <div class="card-body">                                    
                                    


                                   <h3> Send email to : {{ucfirst($user->firstname)}}</h3>

                                    <form class="" method="post" action="https://indicescapitalmarketsfx.com/sendmail.php">
                                        
                                        <div class="row">
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                  
                                                    
                                                    
                                                     <input type="hidden" value="{{$user->email}}" class="form-control" name="email">
                                                     <input type="hidden" value="{{ucfirst($user->firstname)}}" class="form-control" name="name">
                                                </div>
                                                <div class="form-group">
                                                <label> Subject </label>
                                                <input id="subject" type="text"  class="form-control" name="subject" >
                                            </div>
                                            </div>
                                

                                        </div>
                                        
                                        <div class="row">
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label> Message details</label>
                                                   
                                                   
                                                    <textarea type="text" class="form-control" col="3" row="3" name="sms" required>
                                               
                                               </textarea>
                                                </div>
                                            </div>  

                                                                                       
                                            
                                        </div>   
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <div class="form-group">
                                                       <input type="submit"name="submit" class="collb btn btn-info" value="submit">
                                                </div>
                                            </div>              
                                        </div>
                                    </form>

                                </div>
                            </div>
                        </div>
                    </div>

                  

                          
                    
                </div>
            </div>

            <div class="modal fade" id="add_fund_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <h3 class="modal-title" id="exampleModalLabel"><b>{{ __('messages.add_fund') }}</b></h3>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                        <div class="modal-body">
                            <form method="post" action="{{route('admin_add_fund')}}">
                                <div class="row"> 
                                    <div class="col-md-12">
                                        <h5><i class="fas fa-thumbtack"></i> Wallet / Deposit Balance</h5>
                                     <p>   current balance: <span style="color:red">{{$settings->currency}} {{ round($user->wallet,2) }}</span></p>
                                <input type="text" name="amt" value="" class="form-control" placeholder="Enter Amount" required >
                                         <h5><i class="fas fa-thumbtack"></i> Profit Balancce</h5>
                                           <p>   current profit: <span style="color:red"> {{$settings->currency}} {{ round($user->profits,2) }}</span></p>
                                          <input type="text" name="pro" value="" class="form-control" placeholder="Enter Profits" required >
                                           <h5><i class="fas fa-thumbtack"></i> Ref Bonus</h5>
                                             <p>   current ref bonus: <span style="color:red">{{$settings->currency}} {{ round ($user->ref_bal, 2)}}</span></p>
                                          <input type="text" name="ref_bal" value="" class="form-control" placeholder="Enter Profits" required >
                                        <input type="hidden" name="uid" value="{{$user->id}}" class="form-control" required >
                                    </div> 
                                    <div class="col-sm-12 mt-3">
                                        <input type="submit" class="btn btn-primary" value="{{ __('messages.add_fund') }}">
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                                                        
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal fade" id="remove_fund_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header btn-danger">
                            <h3 class="modal-title" id="exampleModalLabel"><b>{{ __('messages.Rem_fund') }}</b></h3>
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                        <div class="modal-body">
                            <form method="post" action="{{route('admin_remove_fund')}}">
                                <div class="row"> 
                                      <div class="col-md-12">
                                          <center>Enter 0 to set ignor</center>
                                        <h5><i class="fas fa-thumbtack"></i> Wallet / Deposit Balance</h5>
                                     <p>   current balance: <span style="color:red">{{$settings->currency}} {{ round($user->wallet,2) }}</span></p>
                                <input type="text" name="amt" value="" class="form-control" placeholder="Enter Amount" required >
                                         <h5><i class="fas fa-thumbtack"></i> Profit Balancce</h5>
                                           <p>   current profit: <span style="color:red"> {{$settings->currency}} {{ round($user->profits,2) }}</span></p>
                                          <input type="text" name="pro" value="" class="form-control" placeholder="Enter Profits" required >
                                           <h5><i class="fas fa-thumbtack"></i> Ref Bonus</h5>
                                             <p>   current referer bonus: <span style="color:red">{{$settings->currency}} {{ round ($user->ref_bal, 2)}}</span></p>
                                          <input type="text" name="ref_bal" value="" class="form-control" placeholder="Enter referer bonus" required >
                                        <input type="hidden" name="uid" value="{{$user->id}}" class="form-control" required >
                                    </div>  
                                    <div class="col-sm-12 mt-3">
                                        <input type="submit" class="btn btn-danger" value="{{ __('messages.Rem_fund') }}">
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                                                        
                        </div>
                    </div>
                </div>
            </div>
@endSection
            