@extends('layouts.default') @section('title', trans('general.title.edit', ['type' => trans_choice('general.cheques', 1)])) @section('new_button') view_list{{ trans_choice('general.cheques', 2) . 'List'}} remove_red_eyeshow add {{ trans_choice('general.cheques', 2) }} @endsection @section('content') {!! Form::model($cheque, ['method' => 'PATCH', 'files' => true, 'url' => ['expenses/cheques', $cheque->id], 'role' => 'form']) !!}
{{ trans('general.payee') }} {!! $errors->first('person_id', '
:message
') !!}
{{ Form::selectGroup('account_id', 'Account', $accounts, null, ['data-live-search'=>'true','required' =>'required']) }}
{{ Form::textGroup('paid_at', 'Date', Date::parse($cheque->paid_at)->format('yyyy-mm-dd'), ['id' => 'paid_at', 'class' => 'form-control', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'']) }}
{{ Form::textGroup('cheque_number', 'Cheque Number', null, ['required' => 'required']) }}
{{ Form::hidden('currency_code', setting('general.default_currency') , ['id' => 'currency_code']) }}

Account Details

@php function chartfunction1($elements, $prefix = '' , $item_id) { foreach ($elements as $k=> $element) { @endphp @php } } @endphp @forelse($cheque->account_details as $item) @empty @endforelse
{{ trans('general.actions') }} {{ trans_choice('general.accounting',1) }} {{ trans('general.description') }} {{ trans('bills.price') }} {{ trans('bills.total') }}
0
0
{{ trans('cheques.sub_total') }} 0
{{ trans('cheques.total') }} 0
{{ Form::fileGroup('attachment', trans('general.attachment')) }} @if($cheque->attachment) {{ $cheque->attachment->basename }} @endif
{{ Form::textareaGroup('description', trans_choice('general.description', 2)) }}
{{ Form::saveButton('Update expenses/cheques') }}
{!! Form::close() !!} @include('accounts.common.models.chartofaccount') @include('includes.datepicker') @endsection