<!DOCTYPE html>
<html>
<head>
    <title>
        طباعة المنتجات المتوفرة فى المخازن
    </title>
    <meta charset="utf-8"/>
    <link rel="shortcut icon" type="image/x-icon" href="<?php echo e(asset('app-assets/images/favicon.ico')); ?>">
    <link href="<?php echo e(asset('app-assets/css/bootstrap.min.css')); ?>" rel="stylesheet"/>
    <link href="<?php echo e(asset('app-assets/css/style-rtl.css')); ?>" rel="stylesheet"/>

    <style>
        i.la {
            font-size: 15px !important;
        }

        select.form-control {
            padding: 0 5px !important;
        }
    </style>
    <style type="text/css" media="screen">


        .table-container {
            width: 50%;
            margin: 10px auto;
        }

        .no-print {
            position: fixed;
            bottom: 0;
            right: 30px;
            border-radius: 0;
            z-index: 9999;
        }

        .logo {
            width: 50%px;
            height: 50%px;
            border: 1px solid #ccc;
            padding: 3px;
            border-radius: 5px;
        }

    </style>
    <style type="text/css" media="print">
        body, html {
            -webkit-print-color-adjust: exact !important;
            -moz-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
            -o-print-color-adjust: exact !important;
        }

        .no-print {
            display: none;
        }

        .img-footer {
            position: fixed;
            bottom: 0;
        }

        .logo {
            width: 50%;
            height: 50%px;
            border: 1px solid #ccc;
            padding: 3px;
            border-radius: 5px;
        }
    </style>
</head>
<body style="background: #fff; padding-bottom: 50px;" dir="rtl">
    <?php if(!empty($company->company_logo)): ?>
<div class="text-center m-2 p-2">
    <img class="logo" src="<?php echo e(asset($company->company_logo)); ?>" alt="">
</div>
<?php endif; ?>

<div class="text-center m-2 p-2">
    <div class="col-lg-12 text-center justify-content-center p-2">
        <p class="alert alert-secondary text-center alert-sm"
           style="margin: 10px auto; font-size: 17px;line-height: 1.9;" dir="rtl">
            <?php echo e($company->company_name); ?> <br>
            <?php echo e($company->business_field); ?> <br>
            <?php echo e($company->company_owner); ?> <br>
            <?php echo e($company->phone_number); ?> <br>

        </p>
    </div>
    <h6 class="alert alert-sm alert-success text-center">
        عرض المنتجات المتوفرة فى المخازن
    </h6>
</div>

<table class="table table-condensed table-striped table-bordered text-center table-hover"
       id="example-table" dir="rtl">
    <thead>
    <tr>
        <th class="text-center">الكود العالمى</th>
        <th class="text-center">المخزن</th>
        <th class="text-center">الفئة</th>
        <th class="text-center">الاسم</th>
        <th class="text-center">جملة</th>
        <th class="text-center">قطاعى</th>
        <th class="text-center">تكلفة</th>
        <th class="text-center">رصيد مخزون</th>
        <th class="text-center">رصيد البداية</th>

    </tr>
    </thead>
    <tbody>
    <?php
        $i=0;
    ?>
    <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td><?php echo e($product->code_universal); ?></td>
            <td><?php if($product->store_id): ?><?php echo e($product->store->store_name); ?><?php endif; ?></td>
            <td><?php echo e($product->category->category_name); ?></td>
            <td><?php echo e($product->product_name); ?></td>

            <td>
                <?php echo e(number_format($product->wholesale_price)); ?>

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

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

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

                <?php if(!empty($product->unit_id)): ?>
                    <?php echo e($product->unit->unit_name); ?>

                <?php endif; ?>
            </td>
            <td>
                <?php echo e(number_format($product->first_balance_add)); ?>

                <?php if(!empty($product->unit_id)): ?>
                    <?php echo e($product->unit->unit_name); ?>

                <?php endif; ?>
            </td>
        </tr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>
<button onclick="window.print();" class="no-print btn btn-lg btn-success">طباعة</button>
<a href="<?php echo e(route('client.products.index')); ?>" style="margin-right:110px;"
   class="no-print btn btn-lg btn-danger"> عودة الى عرض المنتجات المتوفرة </a>
</body>
</html>
<?php /**PATH /home/barasys/public_html/resources/views/client/products/print.blade.php ENDPATH**/ ?>