</nav>

                </div>

                <!--  END TOPBAR  -->



            </ul>



            <ul class="navbar-item flex-row ml-auto">

                <li class="nav-item align-self-center search-animated">

                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search toggle-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>

                    <form class="form-inline search-full form-inline search" role="search">

                        <div class="search-bar">

                            <input type="text" class="form-control search-form-control  ml-lg-auto" placeholder="Search...">

                        </div>

                    </form>

                </li>

            </ul>



            <ul class="navbar-item flex-row nav-dropdowns">

               



               



                <li class="nav-item dropdown notification-dropdown">

                    <a href="javascript:void(0);" class="nav-link dropdown-toggle" id="notificationDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg><span class="badge badge-success"></span>

                    </a>

                    <div class="dropdown-menu position-absolute" aria-labelledby="notificationDropdown">

                        <div class="notification-scroll">

						  <?

		   





							 $query_not = $mysqli->prepare("select heading, content from notice");



													$query_not->execute();



													$query_not->bind_result($heading, $content);

		   

		   ?>

		   <?

		                                 while ($query_not->fetch()){

		                                  ?>



                            <div class="dropdown-item">

                                <div class="media server-log">

                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-server"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6" y2="6"></line><line x1="6" y1="18" x2="6" y2="18"></line></svg>

                                    <div class="media-body">

                                        <div class="data-info">

                                            <h6 class=""><? echo $heading;?></h6>

                                            <p class=""><? echo $content;?></p>

                                        </div>



                                        <div class="icon-status">

                                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>

                                        </div>

                                    </div>

                                </div>

                            </div>

							<? } ?>



                            



                            

                        </div>

                    </div>

                </li>

				

											<?

$member_id=$_SESSION['member_id'];

$qry2=$mysqli->prepare("select name,ewallet  from member where member_id=?");



$qry2->bind_param("s", $member_id);



  $qry2->execute();



$qry2->bind_result($name,$ewallet); 



	while($qry2->fetch())



	{



	

	$name=$name;

	$ewallet=$ewallet;



	}

?>



                <li class="nav-item dropdown user-profile-dropdown order-lg-0 order-1">

                    <a href="javascript:void(0);" class="nav-link dropdown-toggle user" id="user-profile-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">

                        <div class="media">

                            <img src="assets/img/90x90.jpg" class="img-fluid" alt="admin-profile">

                        </div>

                    </a>

                    <div class="dropdown-menu position-absolute" aria-labelledby="userProfileDropdown">

                        <div class="user-profile-section">

                            <div class="media mx-auto">

                                <div class="media-body">

                                    <h5>Name : <? echo $name;?></h5>

                                    <p>Member ID : <? echo $member_id;?></p>

                                </div>

                            </div>

                        </div>

                        <div class="dropdown-item">

                            <a href="update_profile.php">

                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg> <span>Profile</span>

                            </a>

                        </div>

                       

                        <div class="dropdown-item">

                            <a href="logout.php">

                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-log-out"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg> <span>Log Out</span>

                            </a>

                        </div>

                    </div>



                </li>

            </ul>

        </header>

    </div>

    <!--  END NAVBAR  -->



    <!--  BEGIN MAIN CONTAINER  -->

    <div class="main-container" id="container">



        <div class="overlay"></div>

        <div class="search-overlay"></div>

        

        <!--  BEGIN CONTENT PART  -->

        <div id="content" class="main-content">

            <div class="layout-px-spacing">



                <div class="page-header">

                    <div class="page-title">

                        <h3><? echo $name;?>(<? echo $member_id;?>)</h3>

                    </div>

                    

                    <div class="toggle-switch">

                        <label class="switch s-icons s-outline  s-outline-secondary">

                            <input type="checkbox" checked="" class="theme-shifter">

                            <span class="slider round">

                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>



                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>

                            </span>

                        </label>

                    </div>

                </div>



                <div class="row layout-top-spacing">



                 <div id="tableSimple" class="col-lg-12 col-12 layout-spacing">

                            <div class="statbox widget box box-shadow">

                                <div class="widget-header">

                                    <div class="row">

                                        <div class="col-xl-12 col-md-12 col-sm-12 col-12">

                                            <h4>Provide Help </h4>

                                        </div>

                                    </div>

                                </div>

                                <div class="widget-content widget-content-area">

                                    <div class="table-responsive">

                                        <table class="table table-bordered mb-4">

                                            <thead>

                                                <tr>

                                                    <th >SL No.  </th>



                                                



                                            <th > Receiver's Details </th>

											<th>Date Fo Creation</th>

                                            <th>Amount</th>

											<th>Bank/Wallet Address</th>

											 <th>Execution Remains  </th>

											 <th>Status  </th>

											 <th>Action  </th>

                                                </tr>

                                            </thead>

                                            <tbody>

											 <?



											$member_id=$_SESSION['member_id'];



$query=$mysqli->prepare("select receive_id,amount,type,date,apv_status,status,expire_date,cancle_status,master_id,id,doc_status  from help_details where participator_id=?");



$query->bind_param("s", $member_id);



  $query->execute();



$query->bind_result($receive_id,$amount,$type,$date,$apv_status,$status,$expire_date,$cancle_status,$master_id,$id,$doc_status); 



	

      

$z=0;

													while($query->fetch())



													{

													$z++;

													 $aa[$z]=$receive_id;

													 $bb[$z]=$amount;

													 $cc[$z]=$type;

													 $dd[$z]=$date;

													 $ee[$z]=$apv_status;

													 $ff[$z]=$status;

													 $gg[$z]=$expire_date;

													 $hh[$z]=$cancle_status;

													 $mm[$z]=$master_id;

													 $middm[$z]=$id;

													 $doc[$z]=$doc_status;

													 

													 

													}



										

for($kk=1;$kk<=$z;$kk++)

{

$receive_id=$aa[$kk];

$amount=$bb[$kk];

$type=$cc[$kk];

$date=$dd[$kk];

$apv_status=$ee[$kk];

$status=$ff[$kk];

$expire_date=$gg[$kk];

$cancle_status=$hh[$kk];

$master_id=$mm[$kk];

$id=$middm[$kk];

$doc_status=$doc[$kk];



$qry2=$mysqli->prepare("select name,block_chain_add,lrx_address,ltc_address  from member where member_id=?");

$qry2->bind_param("s", $receive_id);

$qry2->execute();

$qry2->bind_result($name,$block_chain_add,$lrx_address,$ltc_address); 

while($qry2->fetch())

{

$name=$name;

$block_chain_add=$block_chain_add;

$lrx_address=$lrx_address;

$ltc_address=$ltc_address;

}



$query1=$mysqli->prepare("select bank,bank_branch,acc_no,ifcs,acc_type,payee_name,bank_country,swift_code from user where member_id=?");







										 $query1->bind_param("s", $member_id);







										  $query1->execute();







								  $query1->bind_result($bank,$bank_branch,$acc_no,$ifcs,$acc_type,$payee_name,$bank_country,$swift_code);







								  while($query1->fetch())







									{







									$bank=$bank;$bank_branch=$bank_branch;$acc_no=$acc_no;$ifcs=$ifcs;$acc_type=$acc_type;







									$payee_name=$payee_name;$bank_country=$bank_country;$swift_code=$swift_code;







									}



											?>

                                                <tr>

												<td> <? echo $kk;?></td>

                                                    <td><? echo $receive_id;?><br /><? echo $name;?></td>

                                                    <td> <? echo $date;?></td>

													<td> <? echo $amount;?> <? echo $type;?></td>

                                                    <td><? 

													if($type=="INR")

													{ echo "Payee Name : ".$payee_name;

													  echo "<br>A/C No : ".$acc_no;

													  echo "<br>Bank Name : ".$bank;

													  echo "<br>IFSC Code : ".$ifcs;

													}

													if($type=="TRX"){ echo "TRX Address : ".$lrx_address;}

													if($type=="BTC"){ echo "BTC Address : ".$block_chain_add;}

													if($type=="ETH"){ echo "Etherium Address : ".$ltc_address;}

													 

													

													?></td>

													<?

												$from       = date('Y-m-d H:i:s');

$to         = $expire_date;



$total      = strtotime($to) - strtotime($from);

$hours      = floor($total / 60 / 60);

$minutes    = round(($total - ($hours * 60 * 60)) / 60);



												

												?>

                                                    <td> <? if($status=="n" && $hours<0){echo "Expired";}else{?> <? echo $hours;?> Hours <? echo $minutes;?><? } ?></td>

													

													 <td> <? if($apv_status=="y"){echo "Approved";}else{?> <? if($cancle_status=="y"){echo "Cancled";}else{?>Waiting For Approval<? }} ?></td>

													 <td><? if($doc_status=="y"){?> <a href="upload_doc.php?id=<?php echo $id;?>">Upload Slip</a><? }else{ ?><a href="#" onclick="window.open('view_uploaddoc.php?id=<?php echo $id;?>', '','width=740,height=650,scrollbars=yes,resizable=1'); return true;" />View Slip</a>

<? } ?>

</td>

                                                   

                                                </tr>

												<? } ?>

                                                    

                                               

                                                

                                            </tbody>

                                        </table>

                                    </div>



                                    



                                </div>

                            </div>

                        </div>



                    

                



                    



                    



                </div>