@extends('layouts.admin') @section('title', trans('general.title.new', ['type' => trans_choice('general.payments', 1)])) @section('content')
{!! Form::open(['url' => 'expenses/payments', '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' => '', 'autocomplete' => 'off'], Date::now()->toDateString()) }} {!! Form::hidden('currency_code', $account_currency_code, ['id' => 'currency_code', 'class' => 'form-control', 'required' => 'required']) !!} {!! Form::hidden('currency_rate', '', ['id' => 'currency_rate']) !!} {{ Form::textGroup('amount', trans('general.amount'), 'money', ['required' => 'required', 'autofocus' => 'autofocus']) }} @stack('account_id_input_start')
{!! Form::label('account_id', trans_choice('general.accounts', 1), ['class' => 'control-label']) !!}
{!! Form::select('account_id', $accounts, setting('general.default_account'), 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']) !!}
@stack('account_id_input_end') @stack('vendor_id_input_start')
{!! Form::label('vendor_id', trans_choice('general.vendors', 1), ['class' => 'control-label']) !!}
{!! Form::select('vendor_id', $vendors, null, array_merge(['id' => 'vendor_id', 'class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.vendors', 1)])])) !!}
@stack('vendor_id_input_end') {{ Form::textareaGroup('description', trans('general.description')) }} @stack('category_id_input_start')
{!! 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

') !!}
@stack('category_id_input_end') {{ 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