@extends('layouts.app') @section('title', __('accounting::lang.add_receipt')) @section('content') @include('accounting::layouts.nav')

@lang('accounting::lang.add_receipt')

{!! Form::open(['url' => action([\Modules\Accounting\Http\Controllers\TransferController::class, 'receipt_store']), 'method' => 'post', 'id' => 'receipt_form' ]) !!}
{!! Form::label('ref_no', __('purchase.ref_no').':') !!} @show_tooltip(__('lang_v1.leave_empty_to_autogenerate')) {!! Form::text('ref_no', null, ['class' => 'form-control']); !!}
{!! Form::label('from_account', __( 'accounting::lang.user_acc' ) .":*") !!} {!! Form::select('from_account', [], null, ['class' => 'form-control accounts-dropdown', 'required', 'placeholder' => __('messages.please_select') ]); !!}
{!! Form::label('to_account', __( 'الطرف المدين / الاخذ' ) .":*") !!} {!! Form::select('to_account', [], null, ['class' => 'form-control accounts-dropdown', 'required', 'parent_ids' => $cash.','.$bank, 'placeholder' => __('messages.please_select') ]); !!}
{!! Form::label('amount', __( 'sale.amount' ) .":*") !!} {!! Form::text('amount', 0, ['class' => 'form-control input_number', 'required','placeholder' => __( 'sale.amount' ) ]); !!}
{!! Form::label('operation_date', __( 'messages.date' ) .":*") !!}
{!! Form::text('operation_date', null, ['class' => 'form-control', 'required','placeholder' => __( 'messages.date' ), 'id' => 'operation_date' ]); !!}
{!! Form::label('location_id', __( 'business.location' ) .":*") !!} {!! Form::select('location_id', [], null, ['class' => 'form-control locations-dropdown', 'required', 'placeholder' => __('messages.please_select') ]); !!}
{!! Form::label('note', __( 'brand.note' )) !!} {!! Form::textarea('note', null, ['class' => 'form-control', 'placeholder' => __( 'brand.note' ), 'rows' => 4]); !!}
{!! Form::close() !!}
@endsection @section('javascript') @include('accounting::accounting.common_js') @endsection