@extends('layouts.app', ['title' => 'Aufträge | Reparatur ']) @section('content') {{-- Hinweis modal --}}
{{-- delete modal --}}{{ session('msg') }}
| Kst. {{-- --}} | Service | @if (Auth::user()->get_employee->access_budget)Budget {{-- --}} | @endifTitle/Bauvorhaben | Auftraggeber/Planer | Deadline {{-- --}} | Status {{-- --}} | Leistungstand/ Abteilung | Mitarbeiter | letzter Hinweis am {{-- --}} | {{--letzter Hinweis am | --}} @if (Auth::user()->get_employee->is_mgt)Aktion | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|
| @if (!is_null($item->cost_center)) @if ($item->cost_center->old_number) {{ $item->cost_center->old_number }} {{-- {{ $project->cost_center->number }} --}} @else {{ $item->cost_center->number }} @endif {{-- {{ $project->cost_center->number }} --}} @else {{ $item->fk_order_nr_id }} @endif | {{ $item->get_service->name }} | @if (Auth::user()->get_employee->access_budget)
{{ number_format($item->budget, 2, ',', '.') }} €
@empty($item->budget_equipment)
brutto
|
@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 --}}
@if (!is_null($item->get_customer))
@if (Auth::user()->get_employee->is_mgt)
AG.:
{{ Str::limit($item->get_customer->name, 30) }}
@else
AG.:
{{ 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)) }} |
{{ $item->get_status_in_company->name }}
{{-- {{ $item->get_status_in_company->status_in_company_id }} --}}
|
{{ $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) @else - - - - - - - - @endif {{-- {{ count($item->project_areas) }} --}} | @if (Auth::user()->get_employee->is_mgt){{-- --}} | @endif|