
                                <table class="table">
                                    <thead>
                                        <tr>
                                            <th scope="col">#</th>
                                            <th scope="col"><?= $this->Paginator->sort('order_id',['lable' =>'Code']) ?></th>
                                            <th scope="col"><?= $this->Paginator->sort('topic') ?></th>
                                            <th scope="col" title ='subject'><?= $this->Paginator->sort('subject',['lable' =>'sub']) ?></th>
                                            <th scope="col"><?= $this->Paginator->sort('pages') ?></th>
                                            <th scope="col"><?= $this->Paginator->sort('words') ?></th>
                                            <th scope="col"><?= $this->Paginator->sort('price') ?></th>
                                            <th scope="col"><?= $this->Paginator->sort('order_status',['lable' =>'Status']) ?></th>
                                            <th scope="col"><?= $this->Paginator->sort('deadline_date',['lable' =>'Dead Line']) ?></th>
                                            <th scope="col"><?= $this->Paginator->sort('created') ?></th>
                                            <th scope="col" class="actions"><?= __('Actions') ?></th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $i =1; foreach ($projects as $project): ?>
                                        <tr>
                                            <td><?= $i++ ?></td>
                                            <td><?= $project->order_id ?></td>
                                            <td><?= $project->topic ?></td>
                                            <td><?= $project->subject ?></td>
                                            <td><?= $this->Number->format($project->pages) ?></td>
                                            <td><?= $this->Number->format($project->words) ?></td>
                                            <td><?= $this->Number->format($project->price) ?></td>
                                            <td class="actions"><?php
                                            if($project->order_status ==0){
                                                echo "<span class=' btn btn-danger' title='Pending'>P</span>";
                                            }
                                            else{
                                                echo "<span class='btn btn-success' title='Assigned'>A</span>";
                                                }
                                             ?></td>
                                            <td><?=  date('d-M-y',strtotime($project->deadline_date)) ?></td>
                                            <td><?= date('d-M-y H:i A',strtotime($project->created)) ?></td>


                                            <td class="actions">
                                                <?= $this->Html->link($this->Html->tag('i', '', array('class'=>"fas fa-eye btn btn-success")), array('action' => 'view', $project->id),array('escape'=>false)) ?>
                                                <?= $this->Html->link($this->Html->tag('i', '', array('class'=>"feather icon-edit btn btn-primary")), array('action' => 'edit', $project->id),array('escape'=>false)) ?>
                                                <?= $this->Form->postLink($this->Html->tag('i', '', array('class' => "feather icon-trash-2 btn btn-danger")),
                                                    array('action' => 'delete', $project->id),
                                                    array('escape'=>false),
                                                ['confirm' => __('Are you sure you want to delete # {0}?', $project->id)]) ?>
                                            </td>  
                                        </tr>
                                        <?php endforeach; ?>
                                    </tbody>
                                </table>
                            