@extends('layouts.app') @section('title', __('accounting-reports::lang.edit_cheque_entry')) @section('content')

@lang('accounting-reports::lang.edit_cheque_entry')

{!! Form::open(['url' => route('accounting-reports.cheque-book.update', $cheque->id), 'method' => 'PUT', 'id' => 'edit_cheque_entry_form']) !!}

@lang('accounting-reports::lang.cheque_entry_details')

{!! Form::label('account_id', __('accounting-reports::lang.bank_account') . ':*') !!} {!! Form::select('account_id', $accounts, $cheque->account_id, ['class' => 'form-control select2', 'required', 'placeholder' => __('messages.please_select'), 'style' => 'width:100%']) !!}
{!! Form::label('cheque_no', __('accounting-reports::lang.cheque_no') . ':*') !!} {!! Form::text('cheque_no', $cheque->cheque_no, ['class' => 'form-control', 'required', 'placeholder' => __('accounting-reports::lang.cheque_no')]) !!}
{!! Form::label('cheque_date', __('accounting-reports::lang.cheque_date') . ':*') !!}
{!! Form::text('cheque_date', @format_date($cheque->cheque_date), ['class' => 'form-control date-picker', 'required', 'readonly']) !!}
{!! Form::label('amount', __('accounting-reports::lang.amount') . ':*') !!}
{!! Form::text('amount', @num_format($cheque->amount), ['class' => 'form-control input_number', 'required']) !!}
{!! Form::label('type', __('accounting-reports::lang.cheque_type') . ':*') !!} {!! Form::select('type', ['issued' => __('accounting-reports::lang.issued'), 'received' => __('accounting-reports::lang.received')], $cheque->type, ['class' => 'form-control select2', 'required', 'style' => 'width:100%']) !!}
{!! Form::label('status', __('accounting-reports::lang.cheque_status') . ':*') !!} {!! Form::select('status', ['pending' => __('accounting-reports::lang.pending'), 'cleared' => __('accounting-reports::lang.cleared'), 'bounced' => __('accounting-reports::lang.bounced'), 'cancelled' => __('accounting-reports::lang.cancelled'), 'deposited' => __('accounting-reports::lang.deposited')], $cheque->status, ['class' => 'form-control select2', 'required', 'style' => 'width:100%', 'id' => 'status']) !!}
{!! Form::label('payee_name', __('accounting-reports::lang.payee_name') . ':') !!} {!! Form::text('payee_name', $cheque->payee_name, ['class' => 'form-control', 'placeholder' => __('accounting-reports::lang.payee_name')]) !!}
{!! Form::label('location_id', __('purchase.business_location') . ':') !!} {!! Form::select('location_id', $locations, $cheque->location_id, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'style' => 'width:100%']) !!}
{!! Form::label('reference_no', __('accounting-reports::lang.reference_no') . ':') !!} {!! Form::text('reference_no', $cheque->reference_no, ['class' => 'form-control', 'placeholder' => __('accounting-reports::lang.reference_no')]) !!}
{!! Form::label('cleared_date', __('accounting-reports::lang.cleared_date') . ':') !!}
{!! Form::text('cleared_date', $cheque->cleared_date ? @format_date($cheque->cleared_date) : null, ['class' => 'form-control date-picker', 'readonly']) !!}
{!! Form::label('bounced_date', __('accounting-reports::lang.bounced_date') . ':') !!}
{!! Form::text('bounced_date', $cheque->bounced_date ? @format_date($cheque->bounced_date) : null, ['class' => 'form-control date-picker', 'readonly']) !!}
{!! Form::label('bank_statement_ref', __('accounting-reports::lang.bank_statement_ref') . ':') !!} {!! Form::text('bank_statement_ref', $cheque->bank_statement_ref, ['class' => 'form-control', 'placeholder' => __('accounting-reports::lang.bank_statement_ref')]) !!}
{!! Form::label('bank_statement_date', __('accounting-reports::lang.bank_statement_date') . ':') !!}
{!! Form::text('bank_statement_date', $cheque->bank_statement_date ? @format_date($cheque->bank_statement_date) : null, ['class' => 'form-control date-picker', 'readonly']) !!}
{!! Form::label('bounce_reason', __('accounting-reports::lang.bounce_reason') . ':') !!} {!! Form::textarea('bounce_reason', $cheque->bounce_reason, ['class' => 'form-control', 'rows' => '3', 'placeholder' => __('accounting-reports::lang.bounce_reason')]) !!}
{!! Form::label('narration', __('daybook::lang.narration') . ':') !!} {!! Form::textarea('narration', $cheque->narration, ['class' => 'form-control', 'rows' => '3', 'placeholder' => __('daybook::lang.narration')]) !!}
{!! Form::close() !!}
@endsection @section('javascript') @endsection