<?php $__env->startSection('content'); ?>
<div class="container">
    <?php if(session('success')): ?>
        <div class="alert alert-success"><?php echo e(session('success')); ?></div>
    <?php elseif(session('error')): ?>
        <div class="alert alert-danger"><?php echo e(session('error')); ?></div>
    <?php endif; ?>

    <?php echo e(Form::open(['url' => route('employee.import'), 'method' => 'post', 'enctype' => 'multipart/form-data', 'id' => 'upload_form', 'class' => 'needs-validation', 'novalidate'])); ?>

        <div class="modal-body">
            <div class="row">
                <div class="col-md-12 mb-3">
                    <?php echo e(Form::label('sample_download', __('Download sample employee Excel file'), ['class' => 'form-label d-block'])); ?>

                    <a href="https://payraty-files.s3.eu-west-2.amazonaws.com/uploads/67d89ae03738c.xlsx" download class="btn btn-sm btn-primary">
                        <i class="ti ti-download"></i> <?php echo e(__('Download')); ?>

                    </a>
                </div>

                <div class="col-md-12">
                    <?php echo e(Form::label('file', __('Select Excel File'), ['class' => 'form-label'])); ?>

                    <div class="choose-file form-group">
                        <label for="file" class="form-label">
                            <?php echo e(Form::file('file', ['class' => 'form-control', 'id' => 'file', 'data-filename' => 'upload_file', 'required'])); ?>

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

        <div class="modal-footer">
            <input type="button" value="<?php echo e(__('Cancel')); ?>" class="btn btn-secondary" data-bs-dismiss="modal">
            <button type="submit" class="btn btn-primary"><?php echo e(__('Upload')); ?></button>
         
        </div>
    <?php echo e(Form::close()); ?>

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


<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/payraty/hris/resources/views/employee/import-employees.blade.php ENDPATH**/ ?>