<?php Fun::lang() ?>
<div class="print_this_form">
    <h3><?php echo e(__('administrator.purchase_history')); ?></h3>
    <table id="print_table" width="100%" class="table table-striped table-hover " style="margin-top: 30px">
        <thead>
        <tr>
            <th>#</th>
            <th><?php echo e(__('administrator.purchase_date')); ?></th>
            <th><?php echo e(__('administrator.invoice')); ?></th>
            <th><?php echo e(__('administrator.supplier_name')); ?></th>
            <th><?php echo e(__('administrator.supplier_phone')); ?></th>
            <th><?php echo e(__('administrator.products')); ?></th>
            <th><?php echo e(__('administrator.barcode')); ?></th>
            <th><?php echo e(__('administrator.qty')); ?></th>
        </tr>
        </thead>
        <tbody class="tbody">
        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
            $supplier = findSupplier($row->supplier_id);
            $product = getProductById($row->product_id);
            ?>
            <tr>
                <td><?php echo e($key+1); ?></td>
                <td><?php echo e(date('d-m-Y',strtotime($row->purchase_date))); ?></td>
                <td><a class="under-line cursor text-primary btn_purchase_invoice_public" data-href="<?php echo e(route("purchases.show", $row->purchase_id)); ?>"><?php echo e($row->invoice_number); ?></a></td>
                <td><a class="under-line cursor text-primary btn_supplier_info_public" data-href="<?php echo e(route("suppliers.show", $row->supplier_id)); ?>"><?php echo e($supplier->supplier_name); ?></a></td>
                <td><?php echo e($supplier->supplier_phone); ?></td>
                <td><?php echo e($product->product_name); ?></td>
                <td><?php echo e($row->barcode); ?></td>
                <td><?php echo e($row->qty); ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
    <div class="col-sm-12 col-xs-12">
        <div class="pagin">
            <?php echo Form::hidden('barcode_hide', @$row?$row->barcode:''); ?>

            <?php echo Form::hidden('warehouse_hide', @$row?$row->warehouse_id:''); ?>

            <?php if(@$data): ?>
                <?php echo $data->render(); ?>

            <?php endif; ?>
        </div>
    </div>
</div>
<?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/administrator/report-stock/view-item-detail.blade.php ENDPATH**/ ?>