<html>
<x-head />

<body class="body">
    <x-header />

    <div class="main">
        <div class="container">
            <section id="menu">
                <li>
                    <h3>Заявления</h3>
                    <!-- <a href="">Добавить абонента</a> -->
                </li>
                @foreach ($states as $state)
                <li class="b">
                    <div>
                        <p>ФИО: {{$state->user->fio}}</p>
                        <p>Номер машины: {{$state->carnumber}}</p>
                        <p>Описание: {{$state->comment}}</p>
                        <p>Статус: {{$state->status}}</p>
                        <a href="{{Route('true', $state->id)}}"><button class="buttrue">Принять</button></a>
                        <a href="{{Route('false', $state->id)}}"><button class="butfalse">Отклонить</button></a>
                    </div>
                </li>
                @endforeach
                <div class="pagination_wrap">
                    {{$states->links('vendor.pagination.simple-default')}}
                </div>
            </section>
        </div>
    </div>

</body>

</html>