@extends('layouts.app', ['title' => strtoupper(Request::segment(1)) . ' | ' . strtoupper(Request::segment(2))]) @section('content') {{-- delete modal --}}
{{ session('msg') }}
| {{-- | Service | --}} {{----}} @if (Auth::user()->get_employee->access_budget) | @endif | Title/Bauvorhaben | Kunde | Abteilung | Mitarbeiter | {{-- | letzter Hinweis am | --}} @if (Auth::user()->get_employee->is_mgt)Aktion | @endif||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $item->id }} | {{--{{ $item->get_service->name }} | --}} {{--{{ $item->priority }} | --}} @if (Auth::user()->get_employee->access_budget){{ number_format($item->budget, 2, ',', '.') }} € | @endif
{{ $item->title }}
@if (!is_null($item->fk_project_location_id))
BV. {{ $item->get_project_location->name }} @else BV. nicht ausgewählt @endif {{-- {{ $item->construction_project_name }} --}} |
{{-- @if (!is_null($item->fk_project_location_id)) {{ $item->get_project_location->name }} @else {{ $item->construction_project_name }} @endif | --}}@if (!is_null($item->get_customer)) @if (Auth::user()->get_employee->is_mgt) {{ $item->get_customer->name }} @else {{ $item->get_customer->name }} @endif @endif |
{{ date('d.m.Y', strtotime($item->project_deadline)) }}
@if ($item->fk_status_in_company_id == '7')
ausg. bis: {{ $item->advertised_until_year }} KW {{ $item->advertised_until_week }} @endif |
{{ $item->get_status_in_company->name }}
|
{{ $item->get_current_department->name }} {{-- {{ count($item->project_areas) }} --}} | @if ($item->assigned_employees->count() > 0) @foreach ($item->assigned_employees as $emp) {{ $emp->employee->first_name }} @if (!$loop->last) , @endif @endforeach @endif | {{-- @if ($item->timelines->where('is_note', '1')->count() > 0) {{ date('d.m.Y',strtotime($item->timelines->where('is_note', '=', '1')->sortByDesc('timeline_id')->first()->created_at)) }} --}} {{-- {{ $item->timelines->where('is_note', '=', '1')->sortby('timeline_id')->first()->created_at }} --}} @if ( $item->timelines->filter(function ($value, $key) { if (data_get($value, 'is_note') == '1' or data_get($value, 'is_call') == '1' or data_get($value, 'is_email') == '1' or data_get($value, 'is_post') == '1' or data_get($value, 'is_personally') == '1' ) { # code... return $value; } })->count() > 0) {{ date( 'd.m.Y', strtotime( $item->timelines->filter(function ($value, $key) { if ( data_get($value, 'is_note') == '1' or data_get($value, 'is_call') == '1' or data_get($value, 'is_email') == '1' or data_get($value, 'is_post') == '1' or data_get($value, 'is_personally') == '1' ) { # code... return $value; } })->sortByDesc('timeline_id')->first()->created_at, ), ) }} @else - - - - - - - - @endif {{-- {{ count($item->project_areas) }} --}} | @if (Auth::user()->get_employee->is_mgt){{-- --}} | @endif
| keine Daten | ||||||||||||