@extends('layouts.default')
@section('title', trans('general.title.edit', ['type' => trans_choice('general.revenues', 1)]))
@section('content')
{!! Form::model($revenue, [
'method' => 'PATCH',
'files' => true,
'url' => ['incomes/revenues', $revenue->id],
'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::parse($revenue->paid_at)->toDateString()) }}
{{ Form::textGroup('amount', trans('general.amount'), 'money', ['required' => 'required', 'autofocus' => 'autofocus']) }}
{{ Form::selectGroup('account_id', trans_choice('general.accounts', 1), 'university', $accounts) }}
{!! Form::hidden('currency_code', setting('general.default_currency') , ['id' => 'currency_code']) !!}
{{ Form::textareaGroup('description', trans('general.description')) }}
{{ Form::selectGroup('category_id', trans_choice('general.categories', 1), 'folder-open-o', $categories) }}
{{ Form::selectGroup('customer_id', trans_choice('general.customers', 1), 'user', $customers, null, []) }}
{{ Form::selectGroup('payment_method', trans_choice('general.payment_methods', 1), 'credit-card', $payment_methods) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file-text-o',[]) }}
{{ Form::fileGroup('attachment', trans('general.attachment')) }}
{!! Form::close() !!}
@endsection
@push('scripts')
@endpush