<?php $__env->startSection('content'); ?>
    <div class="container-fluid">


        <!-- DataTales Example -->


        <div class="card mt-4">

            <div class="card-header">
                <?php if(session('status')): ?>
                    <div class="alert alert-danger"><?php echo e(session('status')); ?></div>
                <?php endif; ?>

                <h6 class="m-0 font-weight-bold text-primary"><?php echo e(__('importMedicine')); ?></h6>
            </div>
            <form id="formCSVImport" method="POST" action="<?php echo e(url('admin/add-medicine')); ?>" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="card-body">
                    <div class="form-group row">

                        <p><?php echo e(__('pleaseUpload')); ?> <a
                                href="<?php echo e(url('uploads/sample/sample.csv')); ?>"><?php echo e(__('sampleFormat')); ?></a></p>

                        
                        <div class="col-sm-12 mb-3 mt-0 mb-sm-0">
                            <span style="color:red;">*</span><?php echo e(__('fileInput')); ?></label>
                            <input type="file"
                                class="form-control form-control-user <?php $__errorArgs = ['csv_file'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                id="exampleFile" name="csv_file" value="<?php echo e(old('csv_file')); ?>" accept=".csv">

                            <?php $__errorArgs = ['csv_file'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="text-danger"><?php echo e($message); ?></span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                    </div>
                </div>

                <div class="card-footer">

                    <button id="submit" class="btn btn-success btn-user float-right mb-3" type="submit" role="button">
                        <i class="fa fa-upload"></i>&nbsp;<?php echo e(__('uploadMedicineList')); ?>

                    </button>
                    <a class="btn btn-primary float-right mr-3 mb-3"
                        href="<?php echo e(url('admin/add-medicine')); ?>"><?php echo e(__('cancel')); ?></a>
                </div>
            </form>



            <form id="formImageImport" method="POST" action="<?php echo e(url('admin/add-batch-images')); ?>"
                enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="card-body">
                    <div class="form-group row">

                        <p><?php echo e(__('pleaseUploadImages')); ?> <a
                                href="<?php echo e(url('uploads/sample/sample.zip')); ?>"><?php echo e(__('sampleZipFormat')); ?></a></p>

                        
                        <div class="col-sm-12 mb-3 mt-0 mb-sm-0">
                            <span style="color:red;">*</span><?php echo e(__('fileInputZip')); ?></label>
                            <input type="file"
                                class="form-control form-control-user <?php $__errorArgs = ['image_zip'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                id="exampleFile" accept=".zip,.rar,.7z,.gz" name="image_zip"
                                value="<?php echo e(old('image_zip')); ?>">

                            <?php $__errorArgs = ['image_zip'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="text-danger"><?php echo e($message); ?></span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                        </div>
                        <div class="col-sm-12 mb-3 mt-0 mb-sm-0">
                            <span style="color:red;">*</span><?php echo e(__('fileInputZip')); ?></label>
                            <input type="file"
                                class="form-control form-control-user 
                            <?php $__errorArgs = ['folder_path'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                id="exampleFile" name="folder_path" webkitdirectory directory multiple>

                            <?php $__errorArgs = ['image_zip'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <span class="text-danger"><?php echo e($message); ?></span>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                        </div>

                    </div>
                </div>

                <div class="card-footer">

                    <button id="submit" class="btn btn-success btn-user float-right mb-3" type="submit" role="button">
                        <i class="fa fa-upload"></i>&nbsp;<?php echo e(__('uploadImagesZip')); ?>

                        
                    </button>
                    <a class="btn btn-primary float-right mr-3 mb-3"
                        href="<?php echo e(url('admin/add-medicine')); ?>"><?php echo e(__('cancel')); ?></a>
                </div>
            </form>
        </div>



    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/xorgeekc/public_html/medishop/resources/views/admin/medicine/addmedicinecsv.blade.php ENDPATH**/ ?>