Implemented balances report.

This commit is contained in:
Lukas Halbritter
2019-01-27 22:42:22 +01:00
parent f6b942f4a7
commit 1fcec55f68
4 changed files with 94 additions and 2 deletions
@@ -0,0 +1,36 @@
@extends('layout.master')
@section('title', 'HS-Rechnung für ' . $year)
@section('subnav')
<a class='btn btn-outline-secondary' href='/bookings/year-{{ $year }}'>Zurück</a>
@endsection
@section('content')
<h2>@yield('title')</h2>
<table class='table table-striped table-bordered'>
<tr>
<th>Datum</th>
<th>Kontostand</th>
<th>Monatssaldo</th>
<th>Abgänge</th>
<th>Zugänge</th>
</tr>
<tr>
<td>{{ formatDate(firstDayOfYear($year)) }}</td>
<td>{!! formatAmount($startBalance) !!}</td>
<td></td>
<td></td>
<td></td>
</tr>
@foreach($balances as $balance)
<tr>
<td>{{ formatDate($balance->date) }}</td>
<td>{!! formatAmount($balance->accountBalance) !!}</td>
<td>{!! formatAmount($balance->monthBalance) !!}</td>
<td>{!! formatAmount($balance->expeditures) !!}</td>
<td>{!! formatAmount($balance->incomes) !!}</td>
</tr>
@endforeach
</table>
@endsection