@extends('layouts.app') @section('content')

@lang('global.invoice-payments.title')

{!! Form::model($invoice_payment, ['method' => 'PUT', 'route' => ['admin.credit_note_payments.update', $invoice_payment->id]]) !!}
@lang('global.app_edit')
{!! Form::label('credit_note_id', trans('global.invoice-payments.fields.invoice').'*', ['class' => 'control-label']) !!} {!! Form::select('credit_note_id', $invoices, old('credit_note_id'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('credit_note_id'))

{{ $errors->first('credit_note_id') }}

@endif
{!! Form::label('date', trans('global.invoice-payments.fields.date').'*', ['class' => 'control-label']) !!} {!! Form::text('date', old('date'), ['class' => 'form-control date', 'placeholder' => '', 'required' => '']) !!}

@if($errors->has('date'))

{{ $errors->first('date') }}

@endif
{!! Form::label('account_id', trans('global.invoice-payments.fields.account').'*', ['class' => 'control-label']) !!} {!! Form::select('account_id', $accounts, old('account_id'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('account_id'))

{{ $errors->first('account_id') }}

@endif
{!! Form::label('amount', trans('global.invoice-payments.fields.amount').'*', ['class' => 'control-label']) !!} {!! Form::text('amount', old('amount'), ['class' => 'form-control', 'placeholder' => '', 'required' => '']) !!}

@if($errors->has('amount'))

{{ $errors->first('amount') }}

@endif
{!! Form::label('transaction_id', trans('global.invoice-payments.fields.transaction-id').'', ['class' => 'control-label']) !!} {!! Form::text('transaction_id', old('transaction_id'), ['class' => 'form-control', 'placeholder' => '']) !!}

@if($errors->has('transaction_id'))

{{ $errors->first('transaction_id') }}

@endif
{!! Form::submit(trans('global.app_update'), ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @stop @section('javascript') @parent @stop