You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.0 KiB
PHTML
54 lines
2.0 KiB
PHTML
@extends('layouts.app')
|
|
|
|
@section('pageTitle', 'Create new post - ')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-9 px-4">
|
|
|
|
<h3>Create new post</h3>
|
|
<br>
|
|
|
|
<form action="{{route('posts.store')}}" method="post" enctype="multipart/form-data">
|
|
@csrf
|
|
|
|
<div class="form-group">
|
|
<label for="title">Post Title</label>
|
|
<input type="text" class="form-control" id="title" name="title" required/>
|
|
</div>
|
|
|
|
<div class="form-group mt-4">
|
|
<label for="content">Post Content</label>
|
|
<div class="form-floating">
|
|
<textarea class="form-control" placeholder="Enter markdown here" id="content" required
|
|
name="content" style="height: 200px"></textarea>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<label for="files" class="form-label">Upload pictures</label>
|
|
<input class="form-control" type="file" id="files" name="files[]" multiple>
|
|
</div>
|
|
|
|
<div class="form-group mt-4">
|
|
<label for="location">Location</label>
|
|
<input type="text" name="location" id="location" class="form-control">
|
|
</div>
|
|
|
|
<div class="form-group mt-4">
|
|
<label for="tags">Tags</label>
|
|
<input type="text" name="tags" id="tags" class="form-control">
|
|
</div>
|
|
|
|
<div class="form-group mt-4">
|
|
<button type="submit" class="btn btn-primary px-5">Upload</button>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|