
<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-12">
            <div class="card me-2">
                <form id="importForm" action="<?php echo e(route('product-import')); ?>" method="POST" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <div class="card-header d-flex justify-content-between">
                        <div class="card-title">
                            <h4>Product Import</h4>
                        </div>
                        <div>
                            <a href="<?php echo e(route('product-template')); ?>" class="btn btn-primary">
                                Download Template
                            </a>
                            <a href="<?php echo e(route('product-index')); ?>" class="btn btn-secondary">Back</a>
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="row align-items-center"> <!-- Added align-items-center here -->
                            <!-- First Column -->
                            <div class="col-md-6">
                                <div class="mb-3">
                                    <label class="form-label">Upload File</label>
                                    <input type="file" name="file" class="form-control" id="fileInput" required>
                                </div>
                            </div>
                            <!-- Second Column -->
                            <div class="col-md-6">
                                <div class="mb-3 mt-5">

                                    <button class="btn bg-gradient-primary" type="submit">Upload</button>
                                </div>
                            </div>
                        </div>
                        <!-- Second Column -->
                        <div class="col-md-6">
                            <div class="mb-3">
                                <?php if(session('product_import_error')): ?>

                                    <ul class="mt-4">
                                        <?php $__currentLoopData = session('product_import_error'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <li class="text-danger"><?php echo e($error); ?></li>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </ul>
                                <?php else: ?>
                                    <p class="mt-4">No errors found.</p>
                                <?php endif; ?>
                            </div>
                        </div>

                    </div>
                </form>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.layoutapp', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /opt/lampp/htdocs/lara_commonbilling_new/resources/views/imports/product-import.blade.php ENDPATH**/ ?>