@extends('app') @section('content') @include('flash::message') @include('partials.alert')

{!! ucwords(trans('hilbit.month_end_debtor.form_title')) !!}

{!! Form::open(['id' => 'fm-month-end-invoice']) !!} {!! Form::hidden('invoice_date', null, ['id' => 'invoice_date']) !!}
@include('errors.list')
{!! Form::label('month_end_date', 'Date:', ['class' => 'control-label col-sm-4']) !!}
{!! Form::formattedDate('month_end_date', ['class' => 'form-control','type'=> 'text', 'required']) !!}

{!! Form::label('start_debtor_code', 'Start debtor:', ['class' => 'control-label col-sm-4']) !!}
{!! Form::select('start_debtor_code', $debtor_list, null, ['class' => 'form-control']) !!}
{!! Form::label('end_debtor_code', 'End debtor:', ['class' => 'control-label col-sm-4']) !!}
{!! Form::select('end_debtor_code', $debtor_list, null, ['class' => 'form-control']) !!}

{!! Form::label('agreement_type_id', 'Agreement type:', ['class' => 'control-label col-sm-4']) !!}
{!! Form::checkbox('all_agreement_types', 1, true, ['id' => 'cb_all_agreement_types']) !!} All {!! Form::select('agreement_type_id', $agreement_type_list, null, ['class' => 'form-control', 'id' => 'agreement_type_id']) !!}

{{-- data-select-item-name specifies name of form field of selected items (agreement[]) data-id-field is the field to be added to the agreement[] array agreement[] will be included with form fields --}}
Client Code Client Name Debtor Code Debtor Name
{!! Form::close() !!}
@stop @section('scripts') @stop