Implemented balances report.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
@section('subnav')
|
||||
<li class="nav-item ml-auto">
|
||||
<a href='/bookings/create' class="btn btn-outline-success">Neue Buchung</a>
|
||||
<a href='/reports/balances/{{ $year }}' class="btn btn-outline-warning">HS-Rechnung</a>
|
||||
</li>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user