Transferred the loading of the arrays for the booking forms into a own separate

method.
Impemented the booking.edit view and controller method.
Fixed the bug in the bookings.index view that only months with cashflow are
listed.
This commit is contained in:
Lukas Halbritter
2018-10-04 23:10:58 +02:00
parent 20859fe4a9
commit ac49d3857f
3 changed files with 122 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
@extends('layout.forms.bookings.edit')
@section('title', 'Buchung bearbeiten')
+7 -1
View File
@@ -25,7 +25,8 @@
<th>Projekt</th>
</tr>
@for ($month = 1; $month <= 12; $month++)
@if (isset($bookings[$month]))
@if (date('Y') > $year
or (date('Y') == $year and date('m') >= $month))
<tr style='color: red; font-weight: bold'>
<td></td>
<td></td>
@@ -37,6 +38,8 @@
<td></td>
<td></td>
</tr>
@endif
@if (isset($bookings[$month]))
@foreach($bookings[$month] as $booking)
<tr>
<td>
@@ -99,6 +102,9 @@
@endforeach
@endif
@endforeach
@endif
@if (date('Y') > $year
or (date('Y') == $year and date('m') >= $month))
<tr style='color: #000080; font-weight: bold'>
<td></td>
<td></td>