@extends('layouts.app', ['title' => 'Projekte']) @section('content') {{-- delete modal --}}
@include('layouts.breadcrumb', ['crumbs' => [ucfirst(Request::segment(1)), ucfirst(Request::segment(2))]])

@if (session('msg'))

{{ session('msg') }}

@endif
@if (!empty($projects))

@if (Auth::user()->get_employee->is_mgt) @endif @foreach ($projects as $item) @if (Auth::user()->get_employee->is_mgt) @endif @endforeach
ID Service Bauvorhaben Kunde Deadline Status Abteilung Action
{{ $item->project_id }} {{ $item->get_service->name }} {{ $item->construction_project_name }} {{ $item->get_customer->name }} {{ 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