@extends('layouts.admin') @section('title', trans('general.title.new', ['type' => trans_choice('general.revenues', 1)])) @section('content')
{!! Form::open(['url' => 'incomes/revenues', 'files' => true, 'role' => 'form']) !!}
{{ Form::textGroup('paid_at', trans('general.date'), 'calendar',['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => ''], Date::now()->toDateString()) }} {{ Form::textGroup('amount', trans('general.amount'), 'money', ['required' => 'required', 'autofocus' => 'autofocus']) }}
{!! Form::label('account_id', trans_choice('general.accounts', 1), ['class' => 'control-label']) !!}
{!! Form::select('account_id', $accounts, setting('general.accounts', 1), array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.accounts', 1)])])) !!}
{!! Form::text('currency', $account_currency_code, ['id' => 'currency', 'class' => 'form-control', 'required' => 'required', 'disabled' => 'disabled']) !!} {!! Form::hidden('currency_code', $account_currency_code, ['id' => 'currency_code', 'class' => 'form-control', 'required' => 'required']) !!} {!! Form::hidden('currency_rate', '', ['id' => 'currency_rate']) !!}
{!! Form::label('customer_id', trans_choice('general.customers', 1), ['class' => 'control-label']) !!}
{!! Form::select('customer_id', $customers, null, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.customers', 1)])])) !!}
{{ Form::textareaGroup('description', trans('general.description')) }}
{!! Form::label('category_id', trans_choice('general.categories', 1), ['class' => 'control-label']) !!}
{!! Form::select('category_id', $categories, null, array_merge(['class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.categories', 1)])])) !!}
{!! $errors->first('category_id', '

:message

') !!}
{{ Form::recurring('create') }} {{ Form::selectGroup('payment_method', trans_choice('general.payment_methods', 1), 'credit-card', $payment_methods, setting('general.default_payment_method')) }} {{ Form::textGroup('reference', trans('general.reference'), 'file-text-o', []) }} {{ Form::fileGroup('attachment', trans('general.attachment')) }}
{!! Form::close() !!}
@endsection @push('js') @endpush @push('css') @endpush @push('scripts') @endpush