@extends('layouts.main') @section('js') @endsection @section('content') {{ Form::open(['action' => 'App\Http\Controllers\PostController@store', 'class' => 'add-new-post', 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
{{ Form::text('title', null, ['class' => 'form-control form-control-lg mb-3', 'placeholder' => 'Your Post Title']) }}
{{ Form::textarea('article-ckeditor', null, ['id' => 'article-ckeditor', 'name' => 'article-ckeditor', 'class' => 'form-control form-control-lg mb-3', 'placeholder' => 'Your Post', 'style' => 'min-height:400px;']) }}
Upload an Image for the Post {{ Form::file('image', ['class' => 'mb-2 btn btn-success mr-2']) }}
Choose a Category for the Post
{{ Form::select('category', $categories, null, ['class' => 'form-control']) }}
Actions
  • flag Status: Draft visibility Visibility: Public calendar_today Schedule: Now score Readability: Ok
  • {{ Form::button('save Save Draft', ['class' => 'btn btn-sm btn-outline-accent', 'type' => 'submit', 'value' => 'draft', 'name' => 'submit']) }} {{ Form::button('file_copy Publish', ['class' => 'btn btn-sm btn-accent ml-auto', 'type' => 'submit', 'value' => 'publish', 'name' => 'submit']) }} {{--
Categories
  • {{ Form::text('new_category', null, ['class' => 'form-control', 'placeholder' => 'New category', 'aria-label' => 'Add new category', 'aria-describedby' => 'basic-addon2']) }}
    {{ Form::button('add', ['class' => 'btn btn-white px-2', 'type' => 'submit', 'value' => 'new_category', 'name' => 'submit']) }}
{{ Form::close() }} @endsection