@php use Request as Input; use Carbon\Carbon; @endphp
{!! Form::label('title', 'Title', ['class' => 'form-label', 'for' => 'title']) !!} * {!! Form::text('title', Input::old('title', isset($task) ? $task->title : ''), [ 'id' => 'title', 'class' => 'form-control', 'placeholder' => 'Enter Title', 'tabindex' => '1', ]) !!}
{!! Form::label('description', 'Description', ['class' => 'form-label', 'for' => 'title']) !!} * {!! Form::textarea('description', Input::old('description', isset($task) ? $task->descriptions : ''), [ 'id' => 'description', 'class' => 'form-control', 'placeholder' => 'Description', 'tabindex' => '3', ]) !!}
{!! Form::label('notes', 'Notes', ['class' => 'form-label', 'for' => 'title']) !!} {!! Form::textarea('notes', Input::old('notes', isset($task) ? $task->notes : ''), [ 'id' => 'notes', 'class' => 'form-control', 'placeholder' => 'Notes', 'rows' => '6', 'tabindex' => '4', ]) !!}
{!! Form::label('due_date', 'Select Due Date', ['class' => 'form-label', 'for' => 'basic-default-dob']) !!}
{!! Form::text( 'due_date', Input::old( 'due_date', isset($task->due_date) ? Carbon::createFromFormat('Y-m-d', $task->due_date)->format(config('const.displayDate')) : '', ), [ 'id' => 'basic-default-dob', 'class' => 'form-control flatpickr-validation flatpickr-input', 'placeholder' => 'Select Due Date', 'tabindex' => '6', ], ) !!}
*
@if (isset($task->id)) @else @endif Cancel