<?php $__env->startSection('content'); ?>

<div class="modal-dialog">

    <div class="modal-content">

        <div class="modal-header">

            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>

            <h5 class="modal-title"><?php echo e(trans('application.select_product')); ?></h5>

        </div>

        <div class="modal-body">

                    <table class="table table-bordered table-striped table-hover datatable">

                        <thead>

                        <tr>

                            <th></th>

                            <th><?php echo e(trans('application.name')); ?></th>

                            <th><?php echo e(trans('application.code')); ?></th>

                            <th><?php echo e(trans('application.category')); ?></th>

                            <th><?php echo e(trans('application.price')); ?></th>

                        </tr>

                        </thead>

                        <tbody>

                        <?php foreach($products as $product): ?>

                        <tr>

                            <td> <?php echo Form::checkbox('select_product'); ?></td>

                            <td><?php echo e($product->name); ?> </td>

                            <td><?php echo e($product->code); ?> </td>

                            <td><?php echo e($product->category); ?> </td>

                            <td><?php echo e($product->price); ?> </td>

                        </tr>

                        <?php endforeach; ?>

                        </tbody>

                    </table>
    </div>

        <div class="modal-footer">
            <?php echo Form::button('Add Product',['class'=>'btn btn-sm btn-success pull-left'] ); ?>
            <?php echo Form::button('close',['class'=>'btn btn-sm btn-danger','data-dismiss'=>'modal'] ); ?>
        </div>

    </div>
</div>

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


<?php echo $__env->make('modal', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>