
<?php $__env->startSection('title','Importer'); ?>

<?php $__env->startSection('content_header'); ?>
<div class="container">
<h3 align="center" class="m-0 text-white" id="importer">Importer proizvoda iz Excel fajlova</h3>
<br>
<?php if(count($errors) > 0): ?>
    <div class="alert alert-danger">
        Greška!<br><br>
        <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
<?php endif; ?>
<?php if($message = Session::get('success')): ?>
    <div class="alert alert-success alert-block">
        <button type="button" class="close" data-dismiss="alert">X</button>
        <strong><?php echo e($message); ?></strong>
    </div>
<?php endif; ?>



<?php echo Form::open(array(
    'url' => "/admin/importer/import",
    'method' => 'post',
    'class' => 'form-horizontal',
    'id' =>'categories-form',
    'role'=>'form',
    'files'=>'true',
    )); ?>


    <?php echo e(csrf_field()); ?>

    <div class="form-group">
        <table class="table">
            <tr>
                <td width="40%" align="right">
                    <?php echo Form::label( 'Opload file'); ?>

                </td>
                <td>
                    <?php echo Form::file( 'select_file'); ?>

                </td>
                <td width="30%" align="left">
                    <?php echo Form::submit(Lang::get('Upload'), array('class' => 'btn btn-success')); ?>

                    <?php echo Form::close(); ?>

                </td>
            </tr>
            <tr>
                <td width="30%" align="right"></td>
                <td width="30%">
                    <span class="text-muted">podržani formati: .xls, .xslx</span>
                </td>
                <td width="30%" align="left"></td>
            </tr>
        </table>
    </div>




</div>
<style>
    #importer{
        background: #1ca3e7;
        padding: 10px;
    }
</style>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Projects\laravel\laravel-shop\resources\themes\default\views/admin/importer/index.blade.php ENDPATH**/ ?>