@extends('layouts.default') @section('title', trans('general.title.new', ['type' => trans_choice('general.payments', 1)])) @section('new_button') view_list{{ trans_choice('general.payments', 2) }} @endsection @section('content')
{!! Form::open(['url' => 'expenses/payments', 'files' => true, 'role' => 'form']) !!}
{{ Form::textGroup('paid_at', trans('general.date'), Date::now()->format('Y-m-d'), ['id' => 'paid_at', 'class' => 'form-control', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'']) }}
{{ Form::textGroup('amount', trans('general.amount'), null, ['id'=>'amount','required' => 'required', 'autofocus' => 'autofocus', 'data-decimals'=>"0"]) }}
{{ Form::selectGroup('account_id', trans_choice('general.accounts', 1), $accounts, setting('general.default_account'), ['data-live-search'=>'true']) }}
{{ Form::hidden('currency_code', setting('general.default_currency'), ['id' => 'currency_code']) }} {{-- {{ Form::selectGroup('category_id', trans_choice('general.categories', 1), $categories, null, []) }} --}}
{{ trans_choice('general.vendors', 1) }} {!! Form::select('vendor_id', $vendors, null, array_merge(['id' => 'vendor_id', 'class' => 'selectpicker','data-live-search'=>'true', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.vendors', 1)])])) !!}
{{ Form::selectGroup('payment_method', trans_choice('general.payment_methods', 1), $payment_methods, setting('general.default_payment_method'), []) }}
{{ Form::textGroup('reference', trans('general.reference'), null) }}
{{ Form::fileGroup('attachment', trans('general.attachment')) }}
{{ Form::textareaGroup('description', trans('general.description'), null) }}
{!! Form::close() !!}
@endsection