@extends('admin.layouts.modal') @section('content') @if (isset($status))
@endif

@if (isset($task) && $task->id) Edit @else Create @endif task

{!! Form::model($task, ['method' => isset($task) && $task->id ? 'put' : 'post','files' => true]) !!} @if (count($errors) > 0)
There were some problems adding task.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{!! 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']) !!}
Attachments
choose Multiple files
{!! Form::close() !!} @if($task->id)
Attachments
@foreach($taskFiles as $key => $val) @endforeach
@endif

@section('styles') @endsection @section('scripts') @endsection