<html>
<x-head />

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

    <div class="main">
        <div class="container">
            <section id="statements">
                <li>
                    <h3>Заявления</h3>
                </li>
                @foreach ($allstates as $state)
                <li class="admin">
                    <p>ФИО: {{$state->user->fio}}</p>
                    <p>Номер машины: {{$state->carnumber}}</p>
                    <p>Описание: {{$state->comment}}</p>
                    <p>Статус: {{$state->status}}</p>
                </li>
                <div>
                    <a href="{{Route('true', $state->id)}}"><button class="button_true">Принять</button></a>
                    <a href="{{Route('false', $state->id)}}"><button class="button_false">Отклонить</button></a>
                </div>
                @endforeach
            </section>
        </div>
    </div>

</body>

</html>