@extends('pages.profile_page') @section('content')

Edit Post: {{$post->title}}

{!! Form::model($post, ['method' => 'PATCH', 'action' => ['App\Http\Controllers\PostController@update', $post->id], 'files' => true]) !!}
{!! Form::label('title', 'Title:', ['class' => 'mb-2']) !!} {!! Form::text('title', null, ['class' => 'form-control']) !!}
{!! Form::label('short_description', 'Short Description:', ['class' => 'mb-2']) !!} {!! Form::text('short_description', null, ['class' => 'form-control']) !!}
{!! Form::label('content', 'Content:') !!} {{ Form::textarea('content', null, ['class' => 'form-control', 'rows' => 1, 'name' => 'content', 'id' => 'myeditorinstance', ]) }}




{!! Form::label('picture', 'Picture:', ['class' => 'mb-2']) !!} {!! Form::file('picture', null, ['class' => 'form-control']) !!}
{!! Form::submit('Save', ['class' => 'btn btn-primary button-hover']) !!} {!! Form::close() !!}
{!! Form::open(['method' => 'DELETE', 'action' => ['App\Http\Controllers\PostController@destroy', $post->id]]) !!}
{!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!}
{!! Form::close() !!}
@endsection