From 7d846ce9e4c172f56342cef36ae1464e1b7acf5f Mon Sep 17 00:00:00 2001 From: Lukas Halbritter Date: Wed, 17 Oct 2018 13:48:37 +0200 Subject: [PATCH] Added buttons in the bookings table. --- resources/views/bookings/index.blade.php | 35 +++++++++++------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/resources/views/bookings/index.blade.php b/resources/views/bookings/index.blade.php index 4aaa43c..319db50 100644 --- a/resources/views/bookings/index.blade.php +++ b/resources/views/bookings/index.blade.php @@ -20,8 +20,6 @@ - - @@ -29,6 +27,7 @@ + @for ($month = 1; $month <= 12; $month++) @if (( @@ -41,8 +40,6 @@ and $firstDate['m'] <= $month )) - - @@ -50,19 +47,12 @@ + @endif @if (isset($bookings[$month])) @foreach($bookings[$month] as $booking) - - @@ -86,12 +76,20 @@ {{ $booking->project()->name }} @endif + @if (!$booking->isSimple()) @foreach ($booking->subBookings as $subBooking) - - @@ -113,6 +111,7 @@ {{ $subBooking->project->name }} @endif + @endforeach @endif @@ -128,8 +127,6 @@ and $firstDate['m'] <= $month )) - - @@ -139,10 +136,9 @@ + - - @@ -152,9 +148,10 @@ + - @for ($i = 0; $i < 9; $i++) + @for ($i = 0; $i < 8; $i++) @endfor
ID Datum Positionen Person / FirmaEingang (H) Konto Projekt
{{ startOfMonth($year, $month) }} Saldo {!! formatAmount($sums[$month - 1]['balance']) !!}
- x - - - {{ $booking->id }} - - {{ formatDate($booking->date) }} {{ $booking->reference }} {{ $booking->person_or_company }} + +
{{ $subBooking->reference }}
{{ endOfMonth($year, $month) }} {!! formatAmount($sums[$month]['incomes']) !!}
{{ endOfMonth($year, $month) }}