@extends('layouts.app') @section('form-title') {{ __('New article task') }} @endsection @section('breadcrumb') @endsection {{-- --}} @section('content')
{{ __('Article task') }}
@csrf
@if(allowedToAddUpdateProjOrg())
{!! clients('client', old('client', $project->client->id), 'select2') !!}
@if($errors->has('client'))

{{ $errors->first('client') }}

@endif
@else {{ getAuthUser()->organisation->name }} @endif
@if(!empty($project)) {!! projects('project', $project->client->id, old('project', $project->id), 'select2') !!} @elseif(allowedToAddUpdateProjOrg()) {!! projects('project', old('client'), old('project'), 'select2') !!} @else {!! projects('project', getAuthUser()->organisation->id, old('project'), 'select2') !!} @endif
@if($errors->has('project'))

{{ $errors->first('project') }}

@endif
@if($errors->has('project_status'))

{{ $errors->first('project_status') }}

@endif
@if($errors->has('project_owner'))

{{ $errors->first('project_owner') }}

@endif
@if($errors->has('task_title'))

{{ $errors->first('task_title') }}

@endif
@if($errors->has('location'))

{{ $errors->first('location') }}

@endif
@if($errors->has('transport'))

{{ $errors->first('transport') }}

@endif
{!! articleTaskStatus('article_status', NULL, old('article_status')) !!}
@if($errors->has('article_status'))

{{ $errors->first('article_status') }}

@endif
{!! suppliers('supplier', old('supplier', getAuthUser()->organisation ? getAuthUser()->organisation->id : 0)) !!} @if($errors->has('supplier'))

{{ $errors->first('supplier') }}

@endif
@if(allowedToAddUpdateProjOrg())
{!! taskOwner('task_owner', old('client'), old('task_owner')) !!}
@if($errors->has('task_owner'))

{{ $errors->first('task_owner') }}

@endif
@else {!! taskOwner('task_owner', getAuthUser()->organisation->id, old('task_owner')) !!} @endif
{{--
{!! taskStatus('task_status', old('task_status', 'open')) !!} @if($errors->has('task_status'))

{{ $errors->first('task_status') }}

@endif
--}}
@if($errors->has('task_deadline'))

{{ $errors->first('task_deadline') }}

@endif
{!! drivers('driver', old('driver')) !!} @if($errors->has('driver'))

{{ $errors->first('driver') }}

@endif
{!! driverTimeBlocksRadio('time_block', old('time_block')) !!} @if($errors->has('time_block'))

{{ $errors->first('time_block') }}

@endif
@if($errors->has('task_time'))

{{ $errors->first('task_time') }}

@endif
@if(canViewUpdate('organisations')) @endif
@if(canViewUpdate('create-project')) @endif
@endsection @push('child-scripts') @endpush