@extends('layout.master') @section('subnav') Zurück @endsection @section('content')

@yield('title')

{{ method_field('patch') }} {{ csrf_field() }}

Allgemeine Buchungsinformationen

{{ Form::label( 'booking[date]', 'Datum', ['class' => 'col-sm-2 col-form-label'] ) }}
{{ Form::date( 'booking[date]', $booking->date, ['class' => 'form-control'] ) }}
{{ Form::label( 'booking[reference]', 'Buchungstext', ['class' => 'col-sm-2 col-form-label'] ) }}
{{ Form::text( 'booking[reference]', $booking->reference, ['class' => 'form-control'] ) }}
{{ Form::label( 'booking[person_or_company]', 'Person / Firma', ['class' => 'col-sm-2 col-form-label'] ) }}
{{ Form::text( 'booking[person_or_company]', $booking->person_or_company, ['class' => 'form-control'] ) }}
{{ Form::label( 'booking[note]', 'Anmerkung', ['class' => 'col-sm-2 col-form-label'] ) }}
{{ Form::textarea( 'booking[note]', $booking->note, ['class' => 'form-control'] ) }}

Teilbuchungen

@foreach ($booking->subBookings as $subBooking) @endforeach
Buchungstext Betrag Konto Personenkonto Projekt
{{ Form::text( "sub_booking[$subBooking->id][reference]", $subBooking->reference ) }} {{ Form::text( "sub_booking[$subBooking->id][amount]", $subBooking->amount ) }} {{ Form::select( "sub_booking[$subBooking->id][account_type_id]", $accountTypeArray, $subBooking->account_type_id, ['placeholder' => 'Hier auswählen ...'] ) }} {{ Form::select( "sub_booking[$subBooking->id][person_target_id]", $openTargetsArray, $subBooking->person_target_id, ['placeholder' => 'Hier auswählen ...'] ) }} {{ Form::select( "sub_booking[$subBooking->id][project_id]", $projectsArray, $subBooking->project_id, ['placeholder' => 'Hier auswählen ...'] ) }}
{{ Form::text('sub_booking[0][reference]') }} {{ Form::text('sub_booking[0][amount]') }} {{ Form::select( 'sub_booking[0][account_type_id]', $accountTypeArray, 'placeholder', ['placeholder' => 'Hier auswählen ...'] ) }} {{ Form::select( 'sub_booking[0][person_target_id]', $openTargetsArray, 'placeholder', ['placeholder' => 'Hier auswählen ...'] ) }} {{ Form::select( 'sub_booking[0][project_id]', $projectsArray, 'placeholder', ['placeholder' => 'Hier auswählen ...'] ) }}
@endsection