|
- <?php
-
-
-
- use yii\helpers\Html;
- use yii\widgets\ActiveForm;
- use common\models\CreditHistory;
- use common\models\Producer;
- use common\models\Order;
-
- $this->setTitle('Commandes <small>'.Html::encode($user->lastname.' '.$user->name).'</small>', 'Commandes de '.Html::encode($user->lastname.' '.$user->name)) ;
- $this->addBreadcrumb(['label' => 'Utilisateurs', 'url' => ['index']]) ;
- $this->addBreadcrumb(['label' => Html::encode($user->lastname.' '.$user->name)]) ;
- $this->addBreadcrumb('Commandes') ;
-
- ?>
-
- <div class="user-orders">
- <?php if(count($ordersArray)): ?>
- <table id="historique-commandes" class="table table-striped table-bordered">
- <thead>
- <tr>
- <th>Date livraison</th>
- <th>Historique</th>
- <th>Résumé</th>
- <th>Point de vente</th>
- <th class="montant">Montant</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach($ordersArray as $order): ?>
- <tr class="<?= $order->getClassHistory() ; ?>">
- <td><?php echo date('d/m/Y',strtotime($order->distribution->date)); ?></td>
- <td class="historique"><?= $order->getStrHistory() ; ?></td>
- <td class="resume"><?= $order->getCartSummary() ; ?></td>
- <td><?= $order->getPointSaleSummary(); ?></td>
- <td class="montant"><?= $order->getAmountSummary(); ?></td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- <?php else: ?>
- <div class="alert alert-warning">Aucune commande passée par ce client.</div>
- <?php endif; ?>
- </div>
|