Files

44 lines
1.8 KiB
PHP

@extends('layout.print')
@section('title', 'Buchungen nach Konten ' . $year)
@section('content')
@foreach($scopes as $scope)
@foreach($scope->accountClasses as $accountClass)
<h5>{{ $scope->name }}</h5>
<b>{{ $accountClass->name }}</b>
<table class='table table-sm table-borderless' style='page-break-after: always'>
<thead>
<tr>
<th>Datum</th>
<th>Position</th>
<th>Person / Firma</th>
<th>Betrag</th>
</td>
</thead>
@foreach($accountClass->accountTypes as $accountType)
<tr>
<th colspan='4' style='color: #000080'>
{{ $accountType->number . ' - ' . $accountType->name }}
</th>
</tr>
@foreach($accountType->subBookings as $subBooking)
<tr>
<td>{{ formatDate($subBooking->date()) }}</td>
<td>{{ $subBooking->reference }}</td>
<td>{{ $subBooking->personOrCompany() }}</td>
<td>{!! formatAmount($subBooking->amount) !!}</td>
</tr>
@endforeach
<tr>
<th colspan='4' style='text-align: right; color:#ff0000'>
{!! formatAmount($accountType->subBookings
->sum('amount')) !!}
</th>
</tr>
@endforeach
</table>
@endforeach
@endforeach
@endsection