Files

49 lines
1.8 KiB
PHP

@extends('layout.master')
@section('title', 'Buchungen nach Konten ' . $year)
@section('subnav')
<a class='btn btn-outline-secondary' href='/bookings/year-{{ $year }}'>
Zurück
</a>
@endsection
@section('content')
<h2>@yield('title')</h2>
@foreach($scopes as $scope)
<h3>{{ $scope->name }}</h3>
@foreach($scope->accountClasses as $accountClass)
<h4>{{ $accountClass->name }}</h4>
<table class='table'>
<tr style='color: #000080'>
<th>Datum</th>
<th>Position</th>
<th>Person / Firma</th>
<th>Betrag</th>
</td>
@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