@extends('layouts.dashboard') @section('template_title') Editing Task @endsection @section('header') Editing Task @endsection @if($task->completed == '1') @php $breadcrumb_status_link = '/tasks-complete'; $breadcrumb_status_title = 'Complete'; @endphp @elseif($task->completed == '0') @php $breadcrumb_status_link = '/tasks-incomplete'; $breadcrumb_status_title = 'Incomplete'; @endphp @endif @section('breadcrumbs')
  • {{ trans('titles.app') }} chevron_right
  • My Tasks chevron_right
  • {{ $breadcrumb_status_title }} chevron_right
  • {{$task->name}}
  • @endsection @section('content')

    {{$task->name}}

    {!! Form::model($task, array('action' => array('TasksController@update', $task->id), 'method' => 'PUT', 'role' => 'form')) !!}
    {!! Form::text('name', NULL, array('id' => 'name', 'class' => 'mdl-textfield__input mdl-color-text--white')) !!} {!! Form::label('name', 'Task Name', array('class' => 'mdl-textfield__label mdl-color-text--primary')); !!} Task name is required
    {!! Form::select('completed', array('1' => 'Complete', '0' => 'Incomplete'), $task->completed, array('class' => 'mdl-selectfield__select mdl-textfield__input mdl-color-text--white', 'id' => 'status')) !!} {!! Form::label('completed', 'Task Status', array('class' => 'mdl-textfield__label mdl-selectfield__label mdl-color-text--primary')); !!}
    {!! Form::textarea('description', NULL, array('id' => 'description', 'class' => 'mdl-textfield__input mdl-color-text--white')) !!} {!! Form::label('description', 'Task Description', array('class' => 'mdl-textfield__label mdl-color-text--primary')); !!}
    {{-- SAVE BUTTON--}} {!! Form::button('Update Task', array('class' => 'dialog-button-save mdl-button mdl-js-button mdl-js-ripple-effect mdl-color--primary mdl-color-text--white mdl-button--raised margin-bottom-1 margin-top-1 margin-top-0-desktop margin-right-1 padding-left-1 padding-right-1 ')) !!} {{-- DELETE TASK BUTTON--}} {!! Form::button('Delete Task', array('class' => 'dialog-button-delete mdl-button mdl-js-button mdl-js-ripple-effect mdl-color--accent mdl-button-colored mdl-color-text--white mdl-button--raised margin-bottom-1 margin-top-1 margin-top-0-desktop padding-left-1 padding-right-1 ')) !!}
    {{-- SAVE ICON --}} {!! Form::button('save', array('class' => 'dialog-button-icon-save mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect mdl-button-colored', 'title' => 'Update Task')) !!} {{-- DELETE USER ICON --}} delete
    @include('dialogs.dialog-save') {!! Form::close() !!} {!! Form::open(array('class' => '', 'id' => 'delete', 'method' => 'DELETE', 'route' => array('tasks.destroy', $task->id))) !!} {{ method_field('DELETE') }} @include('dialogs.dialog-delete', ['dialogTitle' => 'Confirm Task Deletion', 'dialogSaveBtnText' => 'Delete']) {!! Form::close() !!}
    @endsection @section('footer_scripts') @include('scripts.mdl-required-input-fix') @endsection