@extends('layouts.app', ['title' => 'Kundenanfrage' . ' | ' . $project->project_id . ' | ' . $project->construction_project_name]) @section('content') {{-- offer modal --}} {{-- order modal --}} {{-- project-location modal --}}
{{-- --}}
{{--
--}}

@if (Auth::user()->get_employee->is_mgt)
@if (is_null($project->fk_project_location_id))
@endif

@endif @if (Auth::user()->get_employee->is_mgt)
Projektstatus - aktuelle in

Firma:
@foreach ($status_in_com as $sc)
status_in_company_id == $project->fk_status_in_company_id ? 'disabled' : '' }}> @csrf
@endforeach

@endif {{-- @if (Auth::user()->get_employee->is_mgr and $project->current_department_id == Auth::user()->get_employee->get_department->department_id)
Status in {{ $project->get_current_department->name }}-Abteilung:
@csrf
@csrf
@csrf
@if ($project->current_phase == $project->get_service->phases_count and Auth::user()->get_employee->get_department->department_id == '1') @else
@csrf
@endif

@else
@foreach ($status_in_dep as $sd) @if ($sd->status_in_department_id == $project->fk_status_in_department_id) {{ 'Status in ' . $project->get_current_department->name . ' Abteilung: ' . $sd->name }} @endif @endforeach
@endif --}}

{{-- Timeline @foreach ($project->timelines as $tt)
{{ $tt->get_employee->first_name }} {{ $tt->event_msg }}
@endforeach --}}
@csrf
neuer Hinweis/Kontaktverlauf

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


Projekt Verlauf/Hinweise
Filter:
alle
@foreach ($project->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)) }}
{{--

{{ $tt->event_msg }}

--}} {{-- @if ($tt->is_event) {{ $tt->event_msg }} @endif @if ($tt->is_note) {{ $tt->event_msg }} @endif @if ($tt->is_call) {{ $tt->event_msg }} @endif @if ($tt->is_email) {{ $tt->event_msg }} @endif @if ($tt->is_post) {{ $tt->event_msg }} @endif @if ($tt->is_personally) {{ $tt->event_msg }} @endif --}} @if ($tt->is_note)
@if ($tt->is_event) {{ $tt->event_msg }} @else {{ $tt->event_msg }} @endif
@else
@if ($tt->is_call)
@if (isset($tt->fk_customer_id) and $tt->fk_customer_id == $project->fk_customer_id) Kunde: {!! $project->get_customer->name !!} @elseif (isset($tt->fk_customer_id) and $tt->fk_customer_id == $project->fk_planner_customer_id) Planner: {!! $project->get_planner->name !!} @else @endif
@endif @if ($tt->is_email)
@if (isset($tt->fk_customer_id) and $tt->fk_customer_id == $project->fk_customer_id) Kunde: {!! $project->get_customer->name !!} @elseif (isset($tt->fk_customer_id) and $tt->fk_customer_id == $project->fk_planner_customer_id) Planner: {!! $project->get_planner->name !!} @else @endif
@endif @if ($tt->is_post)
@if (isset($tt->fk_customer_id) and $tt->fk_customer_id == $project->fk_customer_id) Kunde: {!! $project->get_customer->name !!} @elseif (isset($tt->fk_customer_id) and $tt->fk_customer_id == $project->fk_planner_customer_id) Planner: {!! $project->get_planner->name !!} @else @endif
@endif @if ($tt->is_personally)
@if (isset($tt->fk_customer_id) and $tt->fk_customer_id == $project->fk_customer_id) Kunde: {!! $project->get_customer->name !!} @elseif (isset($tt->fk_customer_id) and $tt->fk_customer_id == $project->fk_planner_customer_id) Planner: {!! $project->get_planner->name !!} @else @endif
@endif
@if ($tt->is_event) {{ $tt->event_msg }} @else {{ $tt->event_msg }} @endif
@endif
@endif @endforeach
@endsection