@extends('layouts.app') @section('title', 'Edit Cash in Hand Entry') @section('content')

Edit Cash in Hand Entry

@component('components.widget', ['class' => 'box-primary', 'title' => 'Update Cash in Hand Entry'])
@csrf @method('PUT')
{!! Form::date('entry_date', old('entry_date', $entry->entry_date->format('Y-m-d')), [ 'class' => 'form-control', 'id' => 'entry_date', 'required' ]) !!}
@error('entry_date') {{ $message }} @enderror
@error('ledger_type_id') {{ $message }} @enderror
@error('ledger_subcategory_id') {{ $message }} @enderror
{!! Form::number('amount', old('amount', $entry->amount), [ 'class' => 'form-control', 'step' => '0.01', 'required', 'placeholder' => 'Enter amount' ]) !!} @error('amount') {{ $message }} @enderror
{!! Form::text('detail', old('detail', $entry->detail), [ 'class' => 'form-control', 'required', 'placeholder' => 'Enter detail' ]) !!} @error('detail') {{ $message }} @enderror
dr_cr) == 'dr' ? 'checked' : '' }} required>
dr_cr) == 'cr' ? 'checked' : '' }}>
@error('dr_cr') {{ $message }} @enderror
Cancel
@endcomponent
@endsection @section('javascript') @endsection