@extends('layouts.master') @section('pageTitle', __('Edit Document Workflow')) @section('content') @include('includes.form_style')
@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif
@csrf
@php $workflow_type = App\WorkflowType::where('id', $workflow_document->workflow_type_id)->first(); @endphp
{{ dataTranslation($workflow_type->name) ? dataTranslation($workflow_type->name) : ''}}
{{ $workflow_document->due_date != '' ? date('d-m-Y', strtotime($workflow_document->due_date)) : '' }}
@php $priority = App\Priority::where('id', $workflow_document->priority_id)->first(); @endphp
{{ dataTranslation($priority->name) ? dataTranslation($priority->name) : ''}}
{{ $workflow_document->registration_number }}
{{ $workflow_document->registration_date != '' ? date('d-m-Y', strtotime($workflow_document->registration_date)) : '' }}
@php $delivery_type = App\DeliveryType::where('id', $workflow_document->delivery_type_id)->first(); @endphp
{{ dataTranslation($delivery_type->name) ? dataTranslation($delivery_type->name) : '' }}
@php $document_type = App\DocumentType::where('id', $workflow_document->document_type_id)->first(); @endphp
{{ dataTranslation($document_type->name) ? dataTranslation($document_type->name) : '' }}
@if($senders) @foreach($senders as $sender) @php $contact =App\WorkflowDocumentSender::where('contact_id', $sender->id)->where('workflow_document_id', $workflow_document->id)->first(); @endphp @if($contact && $contact->contact_id == $sender->id) {{ $sender->organization_name }}
@endif @endforeach @endif
{{ $workflow_document->sender_letter_number}}
{{ $workflow_document->sender_letter_date != '' ? date('d-m-Y', strtotime($workflow_document->sender_letter_date)) : '' }}
{{ $workflow_document->topic}}
{{ $workflow_document->additional_notes}}
{{ $workflow_document->comment}}
@include('document-workflows.view_reply_right_section')
@include('includes.form_script') @endsection