@extends('layouts.app', ['title' => strtoupper(Request::segment(1)) . ' | ' . strtoupper(Request::segment(2))]) @section('content') {{-- delete modal --}} {{-- Hinweis modal --}}
@if (Auth::user()->get_employee->is_mgt or Auth::user()->get_employee->is_mkt)
Neu
@endif

@if (session('msg'))

{{ session('msg') }}

@endif
@if (!empty($projects))
{{-- --}} {{-- --}}

@if (Auth::user()->get_employee->access_budget) @endif {{-- --}} @if (Auth::user()->get_employee->is_mgt) @endif {{-- ss{{ $projects->get('fk_project_location_id') }} --}} @foreach ($projects->groupBy('fk_project_location_id') as $itemb) @if (Auth::user()->get_employee->access_budget) @endif {{-- @foreach ($itemb as $item) BV. {{ $item->get_project_location->name }} @endforeach --}} {{-- @foreach ($projects as $item) --}} @foreach ($itemb->sortBy('budget') as $item) @if (Auth::user()->get_employee->access_budget) @endif @if (Auth::user()->get_employee->is_mgt) @endif @endforeach @endforeach @if (Auth::user()->get_employee->access_budget) @endif
* Um den letzten Hinweis anzuzeigen, klicken Sie bitte auf das Datum des Hinweises.
@csrf
Service
@csrf
@csrf
Bauvorhabensort/Title Kunde/Planer
@csrf
@csrf
Abteilung Mitarbeiter
@csrf
letzter Hinweis am Aktion
@if (!is_null($itemb[0]->fk_project_location_id)) BV. {{ $itemb[0]->get_project_location->name }} @else BV. nicht ausgewählt @endif {{-- BV. {{ $itemb[0]->get_project_location->name }} --}}
{{ $item->project_id }} {{ $item->get_service->name }} {{ $item->priority }} {{ number_format($item->budget, 2, ',', '.') }} €
{{-- @if (!is_null($item->fk_project_location_id)) BV. {{ $item->get_project_location->name }} @else BV. nicht ausgewählt @endif --}}
{{-- fk_project_location_id)) ALT. {{ $item->construction_project_name }}
BV. {{ $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 --}} @if (!is_null($item->get_customer)) @if (Auth::user()->get_employee->is_mgt) K.: {{ Str::limit($item->get_customer->name, 30) }} @else K.: {{ Str::limit($item->get_customer->name, 30) }} @endif @endif @if (!is_null($item->get_planner))
@if (Auth::user()->get_employee->is_mgt) P.: {{ Str::limit($item->get_planner->name, 30) }} @else P.: {{ Str::limit($item->get_planner->name, 30) }} @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->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
{{-- --}}
Beste Angebote Summe(netto): @php $bg = 0.0; foreach ( $projects->groupBy('fk_project_location_id')->sortBy('budget') as $itemb ) { # code... $bg = $bg + (float) $itemb->min('budget'); // echo $bg . '
'; } @endphp {{ number_format($bg, 2, ',', '.') }} €

@else
Keine Daten
@endif
@endsection