 <?php $__env->startSection('page_title',$expense->exists?'Edit Expense':'New Expense'); ?> <?php $__env->startSection('content'); ?><form method="POST" action="<?php echo e($expense->exists ? route('expenses.update',$expense) : route('expenses.store')); ?>"><?php echo csrf_field(); ?> <?php if($expense->exists): ?> <?php echo method_field('PUT'); ?> <?php endif; ?> <div class="card top-card"><div class="card-body"><div class="row g-3"><div class="col-md-4"><label>Date</label><input type="date" name="expense_date" value="<?php echo e(old('expense_date',$expense->expense_date ?? date('Y-m-d'))); ?>" class="form-control" required></div><div class="col-md-4"><label>Category</label><select name="expense_category_id" class="form-select"><?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($cat->id); ?>" <?php if(old('expense_category_id',$expense->expense_category_id)==$cat->id): echo 'selected'; endif; ?>><?php echo e($cat->name_en); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div><div class="col-md-4"><label>Currency</label><select name="currency_id" class="form-select"><?php $__currentLoopData = $currencies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($c->id); ?>" <?php if(old('currency_id',$expense->currency_id)==$c->id): echo 'selected'; endif; ?>><?php echo e($c->code); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div><input type="hidden" name="exchange_rate" value="1"><div class="col-md-6"><label>Amount</label><input type="number" step="0.01" name="amount" value="<?php echo e(old('amount',$expense->amount)); ?>" class="form-control" required></div><div class="col-12"><label>Notes</label><textarea name="notes" class="form-control"><?php echo e(old('notes',$expense->notes)); ?></textarea></div><div class="col-12 text-end"><button class="btn btn-success">Save</button></div></div></div></div></form><?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\petrolmump\resources\views/expenses/form.blade.php ENDPATH**/ ?>