@extends('layouts.app', ['title' => 'Kostenstelle ' . $cost_center->number]) @section('content')
{{-- Header --}}
Zurück

Kostenstelle: {{ $cost_center->number }} – {{ $cost_center->name }}

@if($cost_center->cost_center_group) {{ $cost_center->cost_center_group->number }} – {{ $cost_center->cost_center_group->title }} @endif
{{-- Eingangsrechnungen --}}
Eingangsrechnungen
{{ $cost_center->incoming_invoices->count() }}
@forelse ($cost_center->incoming_invoices as $item) @empty @endforelse @if($cost_center->incoming_invoices->count() > 0) @endif
R.Nr. Betreff Betrag Datum Lieferant Status
{{ $item->invoice_nr }} {{ $item->title }} @if ($item->get_warning->count() > 0) {{ number_format($item->total, 2, ',', '.') }} € / {{ number_format($item->total + $item->get_warning->sum('total'), 2, ',', '.') }} € @else {{ number_format($item->total, 2, ',', '.') }} € @endif @if (!empty($item->invoice_date)) {{ date('d.m.Y', strtotime($item->invoice_date)) }} @endif {{ $item->supplier->name }} @isset($item->get_status_in_company) {!! $item->get_status_in_company->name !!} @endisset
Keine Eingangsrechnungen
Summe {{ number_format($cost_center->incoming_invoices->sum('total'), 2, ',', '.') }} €
{{-- Ausgangsrechnungen --}}
Ausgangsrechnungen
{{ $cost_center->outgoing_invoices->count() }}
@forelse ($cost_center->outgoing_invoices as $item) @empty @endforelse @if($cost_center->outgoing_invoices->count() > 0) @endif
R.Nr. Betreff Betrag Datum Kunde Status
{{ $item->invoice_nr }} {{ $item->title }} @if ($item->get_warning->count() > 0) {{ number_format($item->total, 2, ',', '.') }} € / {{ number_format($item->total + $item->get_warning->sum('total'), 2, ',', '.') }} € @else {{ number_format($item->total, 2, ',', '.') }} € @endif @if (!empty($item->invoice_date)) {{ date('d.m.Y', strtotime($item->invoice_date)) }} @endif {{ $item->customer->name }} @if ($item->is_paid) bezahlt @else offen @endif
Keine Ausgangsrechnungen
Summe {{ number_format($cost_center->outgoing_invoices->sum('total'), 2, ',', '.') }} €
@endsection