<body>
    <x-head />
    <!-- Wrapper -->
    <div id="wrapper">

        <!-- Header -->
        <x-header />

        <!-- Menu -->
        <x-menu />

        <!-- Main -->
        <div id="main">

            <!-- Post -->
            <form class='post' action="{{ Route('addpost') }}" method="post" enctype="multipart/form-data">
                <h1>Add Post</h1>
                @csrf
                <input type="text" name="post_header" placeholder="Post name"><br>
                <input type="text" name="post_subheader" placeholder="Subtitle"><br>
                <input type="text" name="post_anons" placeholder="Anons"><br>
                <textarea name="post_content" placeholder="Post content"></textarea><br>
                <input type="file" name="post_file"><br><br>
                <input type="submit" name="addpost" class="button big fit" value="Add Post">
            </form>
            @error("post_header")
            <div class="alert alert-danger">{{ $message }}</div>
            @enderror
            @error("post_subheader")
            <div class="alert alert-danger">{{ $message }}</div>
            @enderror
            @error("post_anons")
            <div class="alert alert-danger">{{ $message }}</div>
            @enderror
            @error("post_content")
            <div class="alert alert-danger">{{ $message }}</div>
            @enderror
            @error("post_file")
            <div class="alert alert-danger">{{ $message }}</div>
            @enderror

        </div>
    </div>
    <!-- Footer -->
    <x-footer />

    <!-- Scripts -->
    <x-scripts />

</body>