
                <!--**********************************Table Start_reading Start_reading***********************************-->
                <div class="tab-pane fade" id="Start_reading" role="tabpanel" aria-labelledby="Start_reading-tab">
                    <div class="table-responsive fs-14">
                        <table class="table card-table display mb-4 dataTablesCard text-black text-center" id="example">
                            <thead>
                                <tr>
                                    <th>رقم القراءة</th>
                                    <th>رقم الطرمبة</th>
                                    <th>النوع</th>
                                    <th>العامل</th>
                                    <th>تاريخ القراءة</th>
                                    <th>قراءةالصباح</th>
                                    <th>العمليات</th>
                                </tr>
                            </thead>

                            <tbody>

                                <?php if(isset($readings)): ?>
                                    <?php $__currentLoopData = $readings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $reading): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr class="odd" role="row">
                                            <td>
                                                <?php if(isset($reading->id)): ?>
                                                    <?php echo e($reading->id); ?>

                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <?php if(isset($reading->pump->id)): ?>
                                                    <?php echo e($reading->pump->id); ?>

                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <?php if(isset($reading->pump->tank->type)): ?>
                                                    <?php if($reading->pump->tank->type == 0): ?>
                                                        بترول
                                                    <?php else: ?>
                                                        ديزل
                                                    <?php endif; ?>
                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <?php if(isset($reading->employee->name)): ?>
                                                    <?php echo e($reading->employee->name); ?>

                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <?php if(isset($reading->created_at)): ?>
                                                    <?php echo e(explode(' ', $reading->created_at)[0]); ?>

                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <?php if(isset($reading->start_of_day_read)): ?>
                                                    <?php echo e($reading->start_of_day_read); ?>

                                                <?php endif; ?>
                                            </td>

                                            <div class="dropdown-menu">
                                    
                                                <?php if($reading->end_of_day_read>0): ?>
                                                <button type="button" value="" data-id="<?php echo e($reading->id); ?>"
                                                    data-start_of_day_read="<?php echo e($reading->start_of_day_read); ?>"
                                                    data-pump_id="<?php echo e($reading->pump->id); ?>"
                                                    data-employ_name="<?php echo e($reading->employee->name); ?>"
                                                    class="edit dropdown-item" href="edit transaction-details.html"><i
                                                        class="bi bi-pencil-square text-success ms-3"></i>
                                                        تعديل قراءةالصباح</button>
                                                <button type="button" value="" data-id="<?php echo e($reading->id); ?>"
                                                    data-end_of_day_read="<?php echo e($reading->end_of_day_read); ?>"
                                                    data-start_of_day_read="<?php echo e($reading->start_of_day_read); ?>"
                                                    
                                                    class="editend dropdown-item"
                                                    href="edit transaction-details.html"><i
                                                        class="bi bi-pencil-square text-success ms-3"></i>
                                                        تعديل قراءةالمساء
                                                </button>
                                                <?php elseif(($reading->pump->status==1 || $reading->pump->status==-1)&&$reading->end_of_day_read==0 ): ?>
                                                <span class="p-3 text-center dropdown-item">يجب معالجة الغجز أو الفائض من المدير</span>
                                                <?php else: ?>
                                                <button type="button" value="" data-id="<?php echo e($reading->id); ?>"
                                                    data-start_of_day_read="<?php echo e($reading->start_of_day_read); ?>"
                                                    class="reading dropdown-item" href="edit transaction-details.html">
                                                    <i class="mdi mdi-plus-circle  text-success ms-3"></i>
                                                        اضافة قراءة المساء
                                                </button>
                                                <button type="button" value="" data-id="<?php echo e($reading->id); ?>"
                                                    data-start_of_day_read="<?php echo e($reading->start_of_day_read); ?>"
                                                    data-pump_id="<?php echo e($reading->pump->id); ?>"
                                                    data-employ_name="<?php echo e($reading->employee->name); ?>"
                                                    class="edit dropdown-item" href="edit transaction-details.html"><i
                                                        class="bi bi-pencil-square text-success ms-3"></i>
                                                        تعديل قراءةالصباح</button>
                                                <?php endif; ?>
                                            </div>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!--**********************************Table Start_reading End***********************************-->
<?php /**PATH C:\Users\Nasser\Desktop\petrol_store\resources\views/readings/tables/start_reading.blade.php ENDPATH**/ ?>