<?php $__env->startSection('section-title', 'Account'); ?>
<?php $__env->startSection('page-title', 'Deposit'); ?>

<?php if(check_permission('account.transaction-history')): ?>
    <?php $__env->startSection('action-button'); ?>
        <a href="<?php echo e(url('transaction-history')); ?>" class="btn btn-primary-rgba">
            <i class="mr-2 feather icon-list"></i>
            Transaction History
        </a>
    <?php $__env->stopSection(); ?>
<?php endif; ?>

<?php $__env->startSection('content'); ?>
    <div class="row justify-content-center">
        <div class="col-md-12">
            <div class="card">
                <div class="card-body">
                    <div class="border rounded">
                        <form class="row g-3 needs-validation" method="POST" action="<?php echo e(route('deposit-store')); ?>" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            
                            <div class="mt-2 col-md-6">
                                <label class="form-label font-weight-bold">Date</label>
                                <input type="date" class="form-control" value="<?php echo e(date('Y-m-d')); ?>" name="date" required>
                                <div class="error"><?php echo e(($errors->has('date'))?$errors->first('date'):''); ?></div>
                            </div>

                            
                            <div class="mt-2 col-md-6">
                                <label class="form-label fw-bold">Bank Account *</label>
                                <select class="select2" name="bank_id" required>
                                    <option selected value="">Select Bank Account</option>
                                    <?php $__currentLoopData = $bank_accounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bank_account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($bank_account->id); ?>">
                                            <?php echo e($bank_account->bank_name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <div class="error"><?php echo e(($errors->has('bank_id'))?$errors->first('bank_id'):''); ?></div>
                            </div>

                            
                            <div class="mt-2 col-md-12">
                                <label for="amount" class="form-label fw-bold">Deposit Amount *</label>
                                <input type="number" class="form-control" min="1" step="any" placeholder="Enter Deposit Amount" name="deposit_amount" required>
                                <div class="error"><?php echo e(($errors->has('deposit_amount'))?$errors->first('deposit_amount'):''); ?></div>
                            </div>

                            
                            <div class="mt-2 col-md-12">
                                <label for="details" class="form-label fw-bold">Note</label>
                                <textarea name="note" class="form-control" rows="2"></textarea>
                            </div>

                            
                            <div class="mt-2 col-md-12">
                                <?php if(check_permission('deposit-store')): ?>
                                    <button class="btn btn-primary" type="submit">Save</button>
                                <?php endif; ?>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\laragon\www\fast-pos\resources\views/backend/pages/account/deposit.blade.php ENDPATH**/ ?>