PHP Classes

File: resources/views/post/edit.blade.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Heloise Laravel Blog Package   resources/views/post/edit.blade.php   Download  
File: resources/views/post/edit.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Heloise Laravel Blog Package
Simple blog system with comments and RSS feed
Author: By
Last change:
Date: 1 year ago
Size: 1,019 bytes
 

Contents

Class file image Download
@extends('layouts.app')

@section('title', 'Edit Post | ' . $post->title)

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-8">
                <h2>Update Post</h2>

                <div class="collapsible-body">
                    {!! Form::open(['route' => ['post.update', $post->id]]) !!}
                    {{ Form::token() }}
                    {{ Form::hidden('_method', 'PUT') }}

                    <div class="form-group">
                        {{ Form::text('title', $post->title, ['class' => 'input-block', 'required']) }}
                    </div>

                    <div class="form-group">
                        {!! Form::textarea('body', $post->body, ['class' => 'input-block', 'required']) !!}
                    </div>

                    {{ Form::submit('Update Post', ['class' => 'paper-btn btn-primary']) }}
                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>
@endsection