@extends('layouts.admin') @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::numberGroup('amount', trans('general.amount'), 'money', ['required' => 'required', 'autofocus' => 'autofocus']) }} {{ Form::selectGroup('account_id', trans_choice('general.accounts', 1), 'university', $accounts) }}
{!! Form::label('currency_code', trans_choice('general.currencies', 1), ['class' => 'control-label']) !!}
{!! Form::text('currency', $currencies[$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']) !!}
{!! $errors->first('currency_code', '

:message

') !!}
{{ 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')) }}
@permission('update-incomes-revenues') @endpermission {!! Form::close() !!}
@endsection @push('js') @endpush @push('css') @endpush @push('scripts') @endpush