@extends('layouts.users')


@section('content')
    <style>
        .warning {
            background: rgb(164, 109, 0) !important;
        }
    </style>

    <body class="huiBg">
        <div class="top">
            <a onclick="window.history.go(-1); return false;" class="topLeft">
                <i class="layui-icon layui-icon-left" style="font-size: 22px; color: #fff;"></i>
            </a>
            <div class="topTit">All Record</div>
        </div>
        <div class="history-main">
            <div class="inline-tab history-tab">
                <a href="{{ route('user.trx.log') }}" class="active">All
                    <i></i></a>
                <a href="{{ route('user.withdraw.history') }}">Withdraw <i></i></a>
                <a href="{{ route('user.deposit.history') }}">Recharge
                    <i></i></a>
            </div>
            <div class="history-list">
                @foreach ($logs as $k => $data)
                    <div class="list-info">
                        <div class="list-bot">
                            <div class="list-bot-left">
                                <h3>{{ $data->trx }}</h3>
                                <h2>{{ $data->trx_type }}{{ number_format($data->amount) }}NGN</h2>
                                <p>{{ $data->created_at->format('d.M.Y/h:i a') }}</p>
                            </div>
                            

                        </div>

                    </div>
                @endforeach
            </div>
        </div>
    </body>
@endsection
