<?php $__env->startSection('title', 'Record Income'); ?>
<?php $__env->startSection('page_title', 'Record Income'); ?>
<?php $__env->startSection('breadcrumbs'); ?>
    <li class="breadcrumb-item"><a href="<?php echo e(route('journals.index')); ?>">Journals</a></li><li class="breadcrumb-item active">Income</li>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="card"><div class="card-body">
        <form method="POST" action="<?php echo e(route('journals.income.store')); ?>">
            <?php echo csrf_field(); ?>
            <div class="row g-3">
                <div class="col-md-3"><label class="form-label">Date</label>
                    <input type="date" name="date" value="<?php echo e(now()->format('Y-m-d')); ?>" class="form-control" required></div>
                <div class="col-md-5"><label class="form-label">Income Account (Credit)</label>
                    <select name="income_account_id" class="form-select" required>
                        <?php $__currentLoopData = $incomeAccounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($a->id); ?>"><?php echo e($a->label); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select></div>
                <div class="col-md-4"><label class="form-label">Deposit To (Debit)</label>
                    <select name="deposit_account_id" class="form-select" required>
                        <?php $__currentLoopData = $depositAccounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($a->id); ?>"><?php echo e($a->label); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select></div>
                <div class="col-md-3"><label class="form-label">Amount</label>
                    <input type="number" step="0.01" name="amount" class="form-control" required></div>
                <div class="col-md-6"><label class="form-label">Description</label>
                    <input type="text" name="description" class="form-control" required></div>
                <div class="col-md-3"><label class="form-label">Reference</label>
                    <input type="text" name="reference" class="form-control"></div>
            </div>
            <div class="mt-3"><button class="btn btn-success"><i class="bi bi-check-lg me-1"></i>Record Income</button>
                <a href="<?php echo e(route('journals.index')); ?>" class="btn btn-light border">Cancel</a></div>
        </form>
    </div></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/u385418287/domains/itartificer.com/public_html/sms-erp/resources/views/accounting/journals/income.blade.php ENDPATH**/ ?>