@extends('layouts.app') @section('form-title') {{ __('Article task') }} @endsection @section('breadcrumb') @endsection {{-- --}} @section('content')
{{ __('Edit article task') }}
@csrf @method('PUT')
@if($errors->has('location'))

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

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

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

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

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

@endif
{!! taskOwner('task_owner', $task->client_id ?? (getAuthUser()->organisation ? getAuthUser()->organisation->id : 0), old('task_owner', $task->taskOwner ? $task->taskOwner->id : 0)) !!}
@if($errors->has('task_owner'))

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

@endif
{!! taskStatus('task_status', old('task_status', $task->status)) !!} @if($errors->has('task_status'))

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

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

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

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

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

@endif
{!! driverTimeBlocksRadio('time_block', old('time_block', optional($task->TaskTimeBlock)->driver_time_block_id ?? null)) !!} @if($errors->has('time_block'))

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

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

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

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

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

@endif
{{--
@include('tasks.message_buttons', ['reply' => $reply, 'parent_message_id' => $parent_message_id])
--}} @include('tasks.messages', ['task' => $task])
@endsection @push('child-scripts') @endpush