@extends('layouts.app', ['title' => 'Projekte']) @section('content') @include('dashboard.news')
APP > Projekte in bearbeitung und Aufträge

@if (session('msg'))

{{ session('msg') }}

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

{{-- @foreach ($projects->where('fk_status_in_company_id', '!=', '39')->where('fk_status_in_company_id', '!=', '4')->where('fk_status_in_company_id', '!=', '5')->where('fk_status_in_company_id', '!=', '6')->sortByDesc('project_id') as $item) --}} @foreach ($projects->where('fk_status_in_company_id', '!=', '39')->where('fk_status_in_company_id', '!=', '5')->sortByDesc('project_id') as $item) @endforeach
ID Service Bauvorhaben Budget Kunde Planner Deadline Status Abteilung
{{ $item->project_id }} {{ $item->get_service->name }} @if ($item->fk_project_type_id == '2') {{ $item->construction_project_name }} @else {{ $item->construction_project_name }} @endif {{ number_format($item->budget, 2, ',', '.') }} € @if (!is_null($item->get_customer)) {{ $item->get_customer->name }} @endif @if (!is_null($item->get_planner)) {{ $item->get_planner->name }} @endif {{ date('d.m.Y', strtotime($item->project_deadline)) }}
{{ $item->get_status_in_company->name }}
{{-- --}} {{ $item->get_current_department->name }} {{-- {{ count($item->project_areas) }} --}} {{-- --}}

@else
Keine Daten
@endif
@endsection