<x-app-layout>
    <div class="transactions">
        <p class="title">Autoclaim History</p>
        <div class="table-responsive">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">Energy</th>
                        <th scope="col">Claimed</th>
                        <th scope="col">Date</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($autoclaims as $key=>$value)
                        <tr>
                            <th scope="row">#{{ $value->id }}</th>
                            <td>{{ $value->energy }}</td>
                            <td>{{ $value->claimed }}</td>
                            <td>{{ $value->created_at }}</td>
                        </tr>
                    @endforeach
                </tbody>
            </table>
            {!! $autoclaims->links() !!}
        </div>

    </div>
    <x-footer></x-footer>
</x-app-layout>