getUserModule(); $orderModule = $this->getOrderModule(); $this->setTitle('Commandes') ; $this->addBreadcrumb('Commandes') ; ?>
$dataProvider, 'columns' => [ [ 'label' => 'Statut', 'format' => 'raw', 'value' => function ($order) use ($orderModule) { return $orderModule->getSolver()->getLabelOrderStatus($order, true); } ], [ 'label' => 'Producteur', 'format' => 'raw', 'value' => function ($order) use ($orderModule) { return Html::encode($order->distribution->producer->name); } ], [ 'label' => 'Utilisateur', 'format' => 'raw', 'value' => function ($order) use ($orderModule) { return $orderModule->getSolver()->getOrderUsername($order) .'
'.$orderModule->getSolver()->getLabelOrigin($order, true); } ], [ 'attribute' => 'distribution.date', 'label' => 'Distribution', 'value' => function ($order) { return date('d/m/Y',strtotime($order->distribution->date)); } ], [ 'label' => 'Point de vente', 'format' => 'raw', 'value' => function ($order) use ($orderModule) { return $orderModule->getSolver()->getPointSaleSummary($order); } ], [ 'label' => 'Produits', 'format' => 'raw', 'value' => function ($order) use ($orderModule) { return $orderModule->getRepository()->getCartSummary($order); } ], [ 'label' => 'Montant', 'format' => 'raw', 'value' => function ($order) use ($orderModule) { $orderModule->initOrder($order); return $orderModule->getRepository()->getAmountSummary($order); } ] ], ]); ?>