@extends('layouts.app', ['title' => strtoupper(Request::segment(1)) . ' | ' . strtoupper(Request::segment(2))]) @section('content') {{-- BU Update modal --}} {{-- pdf anzeigen --}} {{-- Kreditor Update modal --}} {{-- Konto Update modal --}}

Ausgangsrechnungen Export


@if (session('msg'))

{{ session('msg') }}

@endif @if (session('error'))

{{ session('error') }}

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

offen
bezahlt
exportiert
{{--
Filter auswählen:
--}}

@csrf
{{-- --}} {{-- --}} {{-- --}} {{-- --}} @php $warnings = 0.0; @endphp @foreach ($invoices as $item) {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach {{-- --}} {{-- --}} {{-- --}}
Betreff Betrag BU-Schlüssel Gegenkonto/Kunde Rech.Nr. Rechnungsdatum Lieferant Eingangsdatum Konto Kostenstelle Zahlungsfrist bis Status Exportiert Abteilung

{{ $item->title }}
@if ($item->get_warning->count() > 0) {{ number_format($item->total, 2, ',', '.') }} € / {{ number_format($item->total + $item->get_warning->sum('total'), 2, ',', '.') }} € @php $warnings += $item->get_warning->sum('total'); @endphp @else {{ number_format($item->total, 2, ',', '.') }} € @endif @if (!empty($item->get_bu_key))
{{ $item->get_bu_key->nr }} @else @endif
@if (!empty($item->customer->customer_code)) {{ $item->customer->customer_code }}- @else @endif @if (!empty($item->customer)) {{ $item->customer->name }} @endif {{ $item->invoice_nr }} @if ($item->invoice_date) {{ date('d.m.Y', strtotime($item->invoice_date)) }} @else - @endif {{ $item->customer->name }} {{ date('d.m.Y', strtotime($item->income_date)) }} @if ($item->fk_konto_id) {{ $item->konto->konto }} - {{ $item->konto->name }} @else - @endif @if (!empty($item->get_cost_center)) @if ($item->get_cost_center->old_number) {{ $item->get_cost_center->old_number }} @else {{ $item->get_cost_center->number }} @endif - {{ $item->get_cost_center->name }} @endif {{ date('d.m.Y', strtotime($item->expiry_date)) }} @if ($item->is_paid) bezahlt @else offen @endif @if ($item->is_exported) Ja @else Nein @endif
Summe netto: {{ number_format($invoices->sum('subtotal'), 2, ',', '.') }} € Mwst.: {{ number_format($invoices->sum('tax'), 2, ',', '.') }}€ brutto: {{ number_format($invoices->sum('total'), 2, ',', '.') }} €

@else
Keine Daten
@endif
@endsection