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

@yield('title')

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

Allgemeine Buchungsinformationen

{{ Form::label('date', 'Datum') }} {{ Form::date('date', $booking->date) }}
{{ 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('note', 'Anmerkung') }} {{ Form::textarea('note', $booking->note) }}

Teilbuchungen

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