jcadima
8/22/2017 - 5:38 AM

/views/task/update.blade.php

/views/task/update.blade.php


@extends('layout')

@section('content')


<form action="{{ route('task.update', [ 'id' => $task_edit->id ] ) }}" method="POST">
    {{ csrf_field() }}

    <div class="row">
	    <div class="col-md-6">
	    	<label>Edit this task</label>
			<div class="form-group">
				<textarea class="form-control" rows="5" name="task">{{ $task_edit->task }}</textarea>
			</div>
		</div>

	</div>

	<div class="btn-group">
		<input class="btn btn-primary" type="submit" value="Submit">
		<a class="btn btn-default" href="{{ redirect()->getUrlGenerator()->previous() }}">Go Back</a>
	</div>

</form>

@stop