@extends('layouts.app') @section('title', __('accounting::lang.journal_entry')) @section('content') @include('accounting::layouts.nav') @lang( 'accounting::lang.journal_entry' ) {!! Form::open(['url' => action('\Modules\Accounting\Http\Controllers\JournalEntryController@store'), 'method' => 'post', 'id' => 'journal_add_form']) !!} @component('components.widget', ['class' => 'box-primary']) {!! 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('journal_date', __('accounting::lang.journal_date') . ':*') !!} {!! Form::text('journal_date', @format_datetime('now'), ['class' => 'form-control datetimepicker', 'readonly', 'required']); !!} {!! Form::label('note', __('lang_v1.additional_notes')) !!} {!! Form::textarea('note', null, ['class' => 'form-control', 'rows' => 3]); !!} # @lang( 'accounting::lang.account' ) @lang( 'accounting::lang.debit' ) @lang( 'accounting::lang.credit' ) @for($i = 1; $i <= 10; $i++) {{$i}} {!! Form::select('account_id[' . $i . ']', [], null, ['class' => 'form-control accounts-dropdown account_id', 'placeholder' => __('messages.please_select'), 'style' => 'width: 100%;']); !!} {!! Form::text('debit[' . $i . ']', null, ['class' => 'form-control input_number debit']); !!} {!! Form::text('credit[' . $i . ']', null, ['class' => 'form-control input_number credit']); !!} @endfor @lang( 'accounting::lang.total' ) @lang('messages.save') @endcomponent {!! Form::close() !!} @stop @section('javascript') @include('accounting::accounting.common_js') @endsection