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

@if (session('msg'))

{{ session('msg') }}

@endif
@if ($counts > 0)

{{-- --}} {{-- --}} @if (Auth::user()->get_employee->access_budget) @endif {{-- --}} @if (Auth::user()->get_employee->is_mgt) @endif @if ($offer_repair) @foreach ($offer_repair as $item) {{-- --}} {{-- --}} @if (Auth::user()->get_employee->access_budget) @endif {{-- --}} @if (Auth::user()->get_employee->is_mgt) @endif @endforeach @else @endif
@csrf
Service
@csrf
@csrf
Title/Bauvorhaben Kunde
@csrf
@csrf
Abteilung Mitarbeiter
@csrf
letzter Hinweis am Aktion
{{ $item->id }} {{ $item->get_service->name }} {{ $item->priority }} {{ number_format($item->budget, 2, ',', '.') }} € {{ $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) }} --}} {{-- --}}
keine Daten

@else
Keine Daten
@endif
@endsection