@extends('layouts.app', ['title' => 'Auftrag-Repartur | ' . $order->id . ' | ' . $order->title]) @section('content') {{-- order modal --}} {{-- project-location modal --}}
{{--
--}}

{{-- @if (Auth::user()->get_employee->is_mgt)

@endif --}} @if (Auth::user()->get_employee->is_mgt)
{{-- --}}
{{-- --}}
@if (is_null($order->fk_project_location_id))

@endif
@endif @if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $order->current_department_id == Auth::user()->get_employee->get_department->department_id)
{{-- @if ($order->fk_status_in_company_id == '39') @elseif ( $order->current_phase > $order->get_service->phases_count and Auth::user()->get_employee->get_department->department_id == '1') @else --}} @if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $order->current_department_id == Auth::user()->get_employee->get_department->department_id) @if ($order->current_phase > 1 and $order->fk_status_in_company_id != '39')
@csrf
@endif @endif
@if ($order->fk_status_in_company_id == '39')
@else
@endif
@if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $order->current_department_id == Auth::user()->get_employee->get_department->department_id) @if ($order->fk_status_in_company_id == '39') @elseif ($order->current_phase >= $order->get_service->phases_count) Projekt beendet! @else
@csrf
@endif @endif

@if (Auth::user()->get_employee->is_mgt)
Hauptstatus:
@foreach ($status_in_com as $sc)
status_in_company_id == $order->fk_status_in_company_id ? 'disabled' : '' }}> @csrf {{-- @if ($order->fk_status_in_company_id == '39') @else --}} {{-- @endif --}}
@endforeach

@endif {{-- @endif @if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $order->current_department_id == Auth::user()->get_employee->get_department->department_id) --}}
in Abteilung: {{ $order->get_current_department->name }}
fk_status_in_department_id == '1' ? 'disabled' : '' }}> @csrf
fk_status_in_department_id == '2' ? 'disabled' : '' }}> @csrf
fk_status_in_department_id == '3' ? 'disabled' : '' }}> @csrf

@elseif (Auth::user()->get_employee->get_departments_subscrib->where('dep_id', $order->get_current_department->department_id)->count() > 0)
{{-- @if ($order->fk_status_in_company_id == '39') @elseif ( $order->current_phase > $order->get_service->phases_count and Auth::user()->get_employee->get_department->department_id == '1') @else --}} {{-- @if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $order->current_department_id == Auth::user()->get_employee->get_department->department_id) --}} @if ($order->current_phase > 1 and $order->fk_status_in_company_id != '39')
@csrf
@endif {{-- @endif --}}
@if ($order->fk_status_in_company_id == '39')
@else
@endif
{{-- @if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $order->current_department_id == Auth::user()->get_employee->get_department->department_id) --}} @if ($order->fk_status_in_company_id == '39') @elseif ($order->current_phase >= $order->get_service->phases_count) Projekt beendet! @else
@csrf
@endif {{-- @endif --}}

in Abteilung: {{ $order->get_current_department->name }}
fk_status_in_department_id == '1' ? 'disabled' : '' }}> @csrf
fk_status_in_department_id == '2' ? 'disabled' : '' }}> @csrf
fk_status_in_department_id == '3' ? 'disabled' : '' }}> @csrf

@else
@foreach ($status_in_dep as $sd) @if ($sd->status_in_department_id == $order->fk_status_in_department_id) {{ 'aktuell in der Abteilung: ' }} {{ $order->get_current_department->name }} - {{ $sd->name }} @endif @endforeach
@endif
@if ($order->fk_status_in_department_id != '1') @if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $order->current_department_id == Auth::user()->get_employee->get_department->department_id or Auth::user()->get_employee->get_departments_subscrib->where('dep_id', $order->get_current_department->department_id)->count() > 0)

Aktueller Leistungsstand: Projektfortschritt in der {{ $order->get_current_department->name }}-Abteilung, bitte aktualisieren Sie die Projektfortschritt zeitnah!

{{ $order->progress }}%
{{-- --}} fk_status_in_company_id == '39')>
@endif @endif
{{-- Timeline @foreach ($order->timelines as $tt)
{{ $tt->get_employee->first_name }} {!! $tt->event_msg !!}
@endforeach --}} @if ($order->fk_status_in_company_id != 6)
@csrf
neuer Hinweis/Kontaktverlauf

** es ist möglich hier jemandem zu erwähnen: @Name oder #Abteilung


@endif
Projekt Verlauf/Hinweise
Filter:
alle
@foreach ($order->timelines as $tt) @if ($tt->is_event or $tt->is_email or $tt->is_note or $tt->is_call or $tt->is_post or $tt->is_personally) @if (request('d_tag') == $tt->timeline_id)
@endif
{{ $tt->get_employee->first_name }} {{ $tt->get_employee->last_name }} {{ date('d.m.Y - H:i', strtotime($tt->created_at)) }}
@if ($tt->is_note)
@if ($tt->is_event) {!! $tt->event_msg !!} @else {!! $tt->event_msg !!} @endif
@elseif ($tt->is_event)
{!! $tt->event_msg !!}
@else
{{-- @if ($tt->is_call) --}}
@if (isset($tt->fk_customer_id) and $tt->fk_customer_id == $order->fk_customer_id) Aufraggeber: {!! $order->get_customer->name !!} @elseif (isset($tt->fk_customer_id) and $tt->fk_customer_id == $order->fk_planner_customer_id) Planner: {!! $order->get_planner->name !!} @elseif (isset($tt->fk_customer_id) and $tt->fk_customer_id == $order->fk_builder_id) Bauherr: {!! $order->get_builder->name !!} @elseif (isset($tt->fk_customer_id) and $tt->fk_customer_id == $order->fk_other_customer_id) Andere: {!! $order->get_builder->name !!} @else @endif
{!! $tt->event_msg !!}
@endif
@endif @endforeach
@endsection