@extends('master.app') @section('title', 'Edit Expense') @section('body') Edit Expense Update expense entry Back @include('general.valert') @csrf @method('PUT') Title Amount Choose Type @foreach($types as $t) type_id)==$t->id)>{{ $t->title_en ?? $t->title_ps }} @endforeach Choose Currency @foreach($currencies as $c) currency_id)==$c->id)>{{ $c->title_en ?? $c->title_ps }} @endforeach Exchange Rate Date @php $cashChecked = old('cash_id'); if($cashChecked === null){ $cashChecked = (property_exists($expense,'c_target') && $expense->c_target==1) ? 1 : 0; } @endphp No Cash Target Yes (Post to Cash Journal) {{ old('details', $expense->details) }} Details Update Cancel @endsection @section('pageJs') @endsection