@php
$user = \Auth::user();
@endphp
@extends('layouts.main')
@push('css')
<link rel="stylesheet" href="{{ asset('assets/front/css/page.css') }}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">

@endpush
@section('content')

<div class="bg02 pt-3 pb-3">
    <div class="container-fluid text-center">
        <div class="cont01 p-3">
            <div class="d-flex flex-row justify-content-between mb-5">

                <a href="deposit.html">
                    <h1 class="dep">Deposit Record</h1>
                </a>
            </div>

            <div class="container">
                @if($all_request)
                @foreach($all_request as $request)
                <div class="data-container p-3">
                    <div class="d-flex flex-row justify-content-between mb-2">
                        <p class="time01">{{ Utility::date_time_format($request->created_at) }}</p>
                        @php
                        $status = 'Pending';
                        if($request->status == 1){
                        $status = 'Successful';
                        }elseif($request->status == 2){
                        $status = 'Rejected';
                        }else{
                        $status = 'Pending';
                        }
                        @endphp
                        <button class="but10">{{ $status }} review</button>
                    </div>
                    <h4 class="amount">USDT {{$request->amount}}</h4>
                </div>
                @endforeach
                @endif
               
            </div>

        </div>
    </div>
</div>
@endsection
@push('javascript')
<!-- <script src="{{ asset('assets/admin/lib/jquery/jquery-3.7.1.min.js') }}"></script> -->
<!-- <script src="{{ asset('assets/admin/lib/datatables/dataTables.js') }}"></script> -->
@include('layouts.includes.datatable_js')
<script>
    $(document).ready(function() {


        $(document).on("click", ".select_amount", function() {
            var amount = $(this).data('amount');
            // alert(amount);
            $('#amount').val(amount);

        });
    });
</script>
@endpush