@if ($task && $task->invoice_id)
{!! Former::plaintext()
->label('client')
->value($task->client->present()->link) !!}
@if ($task->project)
{!! Former::plaintext()
->label('project')
->value($task->present()->project) !!}
@endif
@if ($task->product)
{!! Former::plaintext()
->label('product')
->value($task->present()->product) !!}
@endif
@else
{!! Former::select('client')->addOption('', '')->addGroupClass('client-select') !!}
{!! Former::select('project_id')
->addOption('', '')
->addGroupClass('project-select')
->label(trans('texts.project')) !!}
{!! Former::select('product_id')
->addOption('', '')
->addGroupClass('product-select')
->label(trans('texts.product')) !!}
@endif
@include('partials/custom_fields', ['entityType' => ENTITY_TASK])
{!! Former::textarea('description')->rows(4) !!}
@if ($task)
@if ($task->is_running)
@endif
@else
{!! Former::radios('task_type')->radios([
trans('texts.timer') => array('name' => 'task_type', 'value' => 'timer'),
trans('texts.manual') => array('name' => 'task_type', 'value' => 'manual'),
])->inline()->check('timer')->label(' ') !!}
@endif