

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





    <main id="main" class="main">

        <div class="pagetitle">
            <h1>Transactions</h1>
            <nav>
                <ol class="breadcrumb">
                    
                    <li class="breadcrumb-item active">Transactions</li>
                </ol>
            </nav>
        </div><!-- End Page Title -->

        <section class="section dashboard">
    <div class="row">

      <!-- Left side columns -->
      <div class="col-lg-12">
        <div class="row">

          <div class=" col-12 alert d-none alert-success"><strong>Notice:</strong><p>Kindly join the telegram group to get steady updates</p></div>

          
          <div class="col-12">
            <div class="card recent-sales">
              <div class="filter">
                <a class="icon" href="#" data-bs-toggle="dropdown"><i class="bi bi-three-dots"></i></a>
                <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
                  <li class="dropdown-header text-start">
                    <h6>Filter</h6>
                  </li>
                  <li><a class="dropdown-item" href="#">Today</a></li>
                  <li><a class="dropdown-item" href="#">This Month</a></li>
                  <li><a class="dropdown-item" href="#">This Year</a></li>
                </ul>
              </div>

              <div class="card-body overflow-auto">
                <h5 class="card-title">Recent Transactions <span>| Today</span></h5>

                <table class="table  table-borderless datatable">
                  <thead>
                    <tr>
                     <th scope='col'> Type</th>
                      <th scope="col">Amount</th>
                      <th scope="col">Date</th>
                      <th scope="col">Status</th>
                    </tr>
                  </thead>
                  <tbody>
                      	@foreach($withdrawals as $history)
                      	<tr>
                      		<td>{{$history->type}}</td> 
                      		<!--<td>{{$history->plan}}</td> -->
                   	<td>{{$settings->currency}}{{$history->amount}}</td> 
                   	<td> {{\Carbon\Carbon::parse($history->created_at)->toDayDateTimeString()}}</td>
                   		@if ($history->status == "Processed")
                   		<td class="badge bg-success text-white">{{$history->status}}</td>
                   	
                   	
                   	@else
                   		<td class="badge bg-warning text-white">{{$history->status}}</td>
                   		</tr>
                   	
                   	@endif
                   	@endforeach
                                      </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
      </div>
      

    </div>
  </section>
  
    </main><!-- End #main -->

   


 @endsection  
