@if (isset($task) && $task->id) Edit @else Create @endif task
There were some problems adding task.
@endif
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{!! Form::label('title', 'Title') !!}
{!! Form::text('title',
isset($task) && $task->title ? $task->title : old('title'),
['class' => 'form-control',
'id' => 'title'])
!!}
{!! Form::label('priority', 'Priority') !!}
{!! Form::label('contact_name', 'Contact Name') !!}
{!! Form::text('contact_name',
isset($task) && $task->contact_name ? $task->contact_name : old('contact_name'),
['class' => 'form-control',
'id' => 'contact_name'])
!!}
{!! Form::label('contact_number', 'Contact Number') !!}
{!! Form::text('contact_number',
isset($task) && $task->contact_number ? $task->contact_number : old('contact_number'),
['class' => 'form-control',
'id' => 'contact_number'])
!!}
{!! Form::label('assigned_to', 'Assigned To') !!}
{!! Form::label('contact_address', 'Contact Address') !!}
{!! Form::textarea('contact_address',
isset($task) && $task->contact_address ? $task->contact_address : old('contact_address'),
['class' => 'form-control',
'rows' => '5',
'id' => 'contact_address'])
!!}
{!! Form::label('description', 'Description') !!}
{!! Form::textarea('description',
isset($task) && $task->description ? $task->description : old('description'),
['class' => 'form-control',
'rows' => '5',
'id' => 'description'])
!!}
choose Multiple files
@foreach($taskFiles as $key => $val)
@endforeach