@extends('layouts.default') @section('title', trans('general.title.edit', ['type' => trans_choice('general.payments', 1)])) @section('new_button') view_list{{ trans_choice('general.payments', 2) }} add{{ trans_choice('general.payments', 2) }} @endsection @section('content')
{!! Form::model($payment, [ 'method' => 'PATCH', 'files' => true, 'url' => ['expenses/payments', $payment->id], 'role' => 'form' ]) !!}
{{ Form::textGroup('paid_at', trans('general.date'), Date::parse($payment->paid_at)->format('Y-m-d'), ['id' => 'paid_at', 'class' => 'form-control', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'']) }} {!! Form::hidden('company_id', 1 , ['id' => 'company_id']) !!}
{{ 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', 'USD' , ['id' => 'currency_code']) }} {{-- {{ Form::selectGroup('category_id', trans_choice('general.categories', 1), $categories, null, []) }} --}}
{{ Form::selectGroup('vendor_id', trans_choice('general.vendors', 1), $vendors, null, []) }}
{{ Form::selectGroup('payment_method', trans_choice('general.payment_methods', 1), $payment_methods, null, []) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file-text-o',[]) }}
{{ Form::fileGroup('attachment', trans('general.attachment')) }}
{{ Form::textareaGroup('description', trans('general.description')) }}
{!! Form::close() !!} @include('includes.datepicker') @endsection