@extends('layouts.app', ['title' => 'Eingangsrechnung | ' . $invoice->invoice_nr]) @section('content') {{-- Cost-centre-Nr modal --}} {{-- paid-date modal --}} {{-- Konto Update modal --}} {{-- invoice-warning modal --}} {{-- delete modal --}} {{-- new - Teilzahlung modal --}} {{-- delete payment modal --}}
@if ($previous_invoice) ← Vorherige @endif
@if ($next_invoice) Nächste → @endif

@if ($invoice->fk_invoice_status_id != '4' && $wfCurrentStation)
Aufgabe : {{ $wfCurrentStation->aufgabe ?? '—' }}
@endif
{{-- @if ($invoice->fk_status_in_company_id == '39') @elseif ( $invoice->current_phase > $invoice->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 $invoice->fk_department_id == Auth::user()->get_employee->get_department->department_id) @if ($invoice->current_phase > 1 and $invoice->fk_invoice_status_id < '3' and $wfPrevStation)
@csrf
@endif @endif
@if ($invoice->fk_invoice_status_id == '4' or $invoice->fk_invoice_status_id == '3')
@else
@endif
@if (Auth::user()->get_employee->employee_id == '15' or Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $invoice->fk_department_id == Auth::user()->get_employee->get_department->department_id) @if ($invoice->fk_invoice_status_id > '2') @elseif (!$wfNextStation) Abgeschlossen @else
@csrf
@endif @endif
@if (Auth::user()->get_employee->employee_id == '15' or Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mgr and $invoice->fk_department_id == Auth::user()->get_employee->get_department->department_id) @endif

@if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_acc)
Hauptstatus:
@foreach ($status_in_com as $sc)
id == $invoice->fk_invoice_status_id ? 'disabled' : '' }}> @csrf {{-- @if ($invoice->id == '39') @else --}} {{-- @endif --}}
@endforeach
@endif

aktuell in : {{ $invoice->get_current_department?->name ?? 'N/A' }}
fk_status_in_department_id == '1' ? 'disabled' : '' }}> @csrf
fk_status_in_department_id == '2' ? 'disabled' : '' }}> @csrf
fk_status_in_department_id == '3' ? 'disabled' : '' }}> @csrf


@if ($invoice->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 ($invoice->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->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
@else @if ($tt->is_call)
Lieferant: {!! $invoice->supplier->name !!}
@endif @if ($tt->is_email)
Lieferant: {!! $invoice->supplier->name !!}
@endif @if ($tt->is_post)
Lieferant: {!! $invoice->supplier->name !!}
@endif @if ($tt->is_personally)
Lieferant: {!! $invoice->supplier->name !!}
@endif
@if ($tt->is_event) {{ $tt->event_msg }} @else {{ $tt->event_msg }} @endif
@endif
@endif @endforeach
@endsection