@extends('layouts.app') @section('title', __('accounting-reports::lang.edit_journal_entry')) @section('content') @lang('accounting-reports::lang.edit_journal_entry') {!! Form::open(['url' => route('accounting-reports.journal-entry-management.update', $journal->id), 'method' => 'put', 'id' => 'journal_entry_form']) !!} {!! Form::hidden('id', $journal->id) !!} Journal Entry Details {!! Form::label('voucher_date', __('accounting-reports::lang.voucher_date') . ':*') !!} {!! Form::text('voucher_date', $journal->voucher_date, ['class' => 'form-control date-picker', 'required', 'readonly']) !!} {!! Form::label('location_id', __('accounting-reports::lang.location') . ':') !!} {!! Form::select('location_id', $locations, $journal->location_id, ['class' => 'form-control select2', 'placeholder' => __('lang_v1.all'), 'style' => 'width:100%']) !!} {!! Form::label('narration', __('accounting-reports::lang.narration') . ':*') !!} {!! Form::text('narration', $journal->narration, ['class' => 'form-control', 'required']) !!} {!! Form::label('reference', __('accounting-reports::lang.reference') . ':') !!} {!! Form::text('reference', $journal->reference, ['class' => 'form-control']) !!} Journal Entry Lines @lang('accounting-reports::lang.add_line') @foreach($journal->lines as $index => $line) @lang('accounting-reports::lang.select_account') * @lang('lang_v1.please_select') @foreach($accounts as $account) account_id == $account->id ? 'selected' : '' }}>{{ $account->code }} - {{ $account->name }} @endforeach @lang('accounting-reports::lang.debit') @lang('accounting-reports::lang.credit') lines->count() <= 2 ? 'style="display:none;"' : '' }}> @endforeach Total Debit: 0.00 | Total Credit: 0.00 | Difference: 0.00 @lang('messages.update') @lang('messages.cancel') {!! Form::close() !!} @endsection @section('javascript') @endsection