{{-- @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)
@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
@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)
@endforeach
@endif
aktuell in : {{ $invoice->get_current_department?->name ?? 'N/A' }}
@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