37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
@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
|