diff --git a/resources/views/layout/forms/bookings/edit.blade.php b/resources/views/layout/forms/bookings/edit.blade.php index 592500c..bc090f0 100644 --- a/resources/views/layout/forms/bookings/edit.blade.php +++ b/resources/views/layout/forms/bookings/edit.blade.php @@ -12,25 +12,26 @@

Allgemeine Buchungsinformationen

- - + + - - + + - - + + - - + +
{{ Form::label('date', 'Datum') }}{{ Form::date('date', $booking->date) }}{{ Form::label('booking[date]', 'Datum') }}{{ Form::date('booking[date]', $booking->date) }}
{{ Form::label('booking_reference', 'Buchungstext') }}{{ Form::text('booking_reference', $booking->reference) }}{{ Form::label('booking[reference]', 'Buchungstext') }}{{ Form::text('booking[reference]', $booking->reference) }}
{{ Form::label('person_or_company', 'Person / Firma') }}{{ Form::text('person_or_company', $booking->person_or_company) }}{{ Form::label('booking[person_or_company]', 'Person / Firma') }}{{ Form::text('booking[person_or_company]', $booking->person_or_company) }}
{{ Form::label('note', 'Anmerkung') }}{{ Form::textarea('note', $booking->note) }}{{ Form::label('booking[note]', 'Anmerkung') }}{{ Form::textarea('booking[note]', $booking->note) }}

Teilbuchungen

+ @@ -38,11 +39,26 @@ @foreach ($booking->subBookings as $subBooking) - + + @endforeach - + +
Buchungstext Betrag Konto Personenkonto
{{ Form::text('amount', $subBooking->amount) }} + {{ + Form::text( + "sub_booking[$subBooking->id][reference]", + $subBooking->reference + ) + }} + + {{ + Form::text( + "sub_booking[$subBooking->id][amount]", + $subBooking->amount + ) + }} + {{ Form::select( - 'account_type_id', + "sub_booking[$subBooking->id][account_type_id]", $accountTypeArray, $subBooking->account_type_id, ['placeholder' => 'Hier auswählen ...'] @@ -52,7 +68,7 @@ {{ Form::select( - 'person_target_id', + "sub_booking[$subBooking->id][person_target_id]", $openTargetsArray, $subBooking->person_target_id, ['placeholder' => 'Hier auswählen ...'] @@ -62,7 +78,7 @@ {{ Form::select( - 'project_id', + "sub_booking[$subBooking->id][project_id]", $projectsArray, $subBooking->project_id, ['placeholder' => 'Hier auswählen ...'] @@ -72,11 +88,12 @@
{{ Form::text('amount') }}{{ Form::text('sub_booking[0][reference]') }}{{ Form::text('sub_booking[0][amount]') }} {{ Form::select( - 'account_type_id', + 'sub_booking[0][account_type_id]', $accountTypeArray, 'placeholder', ['placeholder' => 'Hier auswählen ...'] @@ -86,7 +103,7 @@ {{ Form::select( - 'person_target_id', + 'sub_booking[0][person_target_id]', $openTargetsArray, 'placeholder', ['placeholder' => 'Hier auswählen ...'] @@ -96,7 +113,7 @@ {{ Form::select( - 'project_id', + 'sub_booking[0][project_id]', $projectsArray, 'placeholder', ['placeholder' => 'Hier auswählen ...'] @@ -105,7 +122,13 @@
- + + + @endsection