<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        حركة سعر الصنف
        <small>
            <?php echo e($product->name); ?>

        </small>
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
    </h1>
</section>

<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-body">
                    <table id="dataList" class="table table-bordered">
                        <thead>
                        <tr>
                            <th></th>
                            <th>السعر</th>
                            <th>بتاريخ</th>
                            <th>من خلال</th>
                        </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>أول سعر تكلفة</td>
                                <td><?php echo e($firstPrice->price??''); ?></td>
                                <td><?php echo e($firstPrice?$firstPrice->created_at->format('Y-m-d'):''); ?></td>
                                <td><?php echo e($firstPrice?$firstPrice->order->client->name:''); ?></td>
                            </tr>
                            <tr>
                                <td>آخر سعر تكلفة</td>
                                <td><?php echo e($lastPrice->price??''); ?></td>
                                <td><?php echo e($lastPrice?$lastPrice->created_at->format('Y-m-d'):''); ?></td>
                                <td><?php echo e($lastPrice?$lastPrice->order->client->name:''); ?></td>
                            </tr>
                            <tr>
                                <td>أقل سعر تكلفة</td>
                                <td><?php echo e($minPrice->price??''); ?></td>
                                <td><?php echo e($minPrice?$minPrice->created_at->format('Y-m-d'):''); ?></td>
                                <td><?php echo e($minPrice?$minPrice->order->client->name:''); ?></td>
                            </tr>
                            <tr>
                                <td>أعلى سعر تكلفة</td>
                                <td><?php echo e($maxPrice->price??''); ?></td>
                                <td><?php echo e($maxPrice?$maxPrice->created_at->format('Y-m-d'):''); ?></td>
                                <td><?php echo e($maxPrice?$maxPrice->order->client->name:''); ?></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>
