<html>
<x-head />

<body class="body">
    <x-header />
    <div class="main">
        <div class="container">
            <section id="menu">
                <li>
                    <h3>Жалоба</h3>
                </li>
                <li>
                    <form action="{{Route('addstatement')}}" method="post">
                        @csrf
                        <input type="text" name="carnumber" placeholder="Номер машины"><br>
                        <input type="text" name="comment" placeholder="Описание"><br>
                        <input type="submit" class="button" value="Подать жалобу">
                    </form>
                    @error("carnumber")
                    <div class="alert alert-danger">{{ $message }}</div>
                    @enderror
                    @error("comment")
                    <div class="alert alert-danger">{{ $message }}</div>
                    @enderror
                </li>
            </section>
        </div>
    </div>
</body>

</html>