|
|
|
|
|
|
|
|
<?php endif; ?> |
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
<div id="distributions"> |
|
|
<div id="distributions"> |
|
|
<!-- distributions --> |
|
|
|
|
|
<?php if(count($distributionsArray)): ?> |
|
|
|
|
|
<?php foreach($distributionsArray as $distribution): ?> |
|
|
|
|
|
<div class="col-md-4 col-sm-12 col-xs-12"> |
|
|
|
|
|
<div class="info-box"> |
|
|
|
|
|
<span class="info-box-icon bg-green date"> |
|
|
|
|
|
<span class="day"><?= strftime('%A', strtotime($distribution->date)) ?></span> |
|
|
|
|
|
<span class="num"><?= date('d', strtotime($distribution->date)) ?></span> |
|
|
|
|
|
<span class="month"><?= strftime('%B', strtotime($distribution->date)) ?></span> |
|
|
|
|
|
</span> |
|
|
|
|
|
<div class="info-box-content"> |
|
|
|
|
|
<span class="info-box-text"> |
|
|
|
|
|
<?php if(count($distribution->order)): ?> |
|
|
|
|
|
<strong><?= count($distribution->order); ?></strong> COMMANDES |
|
|
|
|
|
<?php else: ?> |
|
|
|
|
|
AUCUNE COMMANDE |
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span class="info-box-number"></span> |
|
|
|
|
|
<div class="buttons"> |
|
|
|
|
|
<?= Html::a('<span class="fa fa-eye"></span>', ['distribution/index', 'date' => $distribution->date], ['class' => 'btn btn-default']); ?> |
|
|
|
|
|
<?php if(count($distribution->order)): ?><?= Html::a('<span class="fa fa-download"></span>', ['distribution/report', 'date' => $distribution->date], ['class' => 'btn btn-default']); ?><?php endif; ?> |
|
|
|
|
|
|
|
|
<div class="panel panel-default"> |
|
|
|
|
|
<div class="panel-heading"> |
|
|
|
|
|
<h3 class="panel-title"> |
|
|
|
|
|
Prochaines distributions |
|
|
|
|
|
</h3> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="panel-body"> |
|
|
|
|
|
<!-- distributions --> |
|
|
|
|
|
<?php if(count($distributionsArray)): ?> |
|
|
|
|
|
<?php foreach($distributionsArray as $distribution): ?> |
|
|
|
|
|
<div class="col-md-4 col-sm-12 col-xs-12"> |
|
|
|
|
|
<div class="info-box"> |
|
|
|
|
|
<span class="info-box-icon bg-green date"> |
|
|
|
|
|
<span class="day"><?= strftime('%A', strtotime($distribution->date)) ?></span> |
|
|
|
|
|
<span class="num"><?= date('d', strtotime($distribution->date)) ?></span> |
|
|
|
|
|
<span class="month"><?= strftime('%B', strtotime($distribution->date)) ?></span> |
|
|
|
|
|
</span> |
|
|
|
|
|
<div class="info-box-content"> |
|
|
|
|
|
<span class="info-box-text"> |
|
|
|
|
|
<?php if(count($distribution->order)): ?> |
|
|
|
|
|
<strong><?= count($distribution->order); ?></strong> COMMANDES |
|
|
|
|
|
<?php else: ?> |
|
|
|
|
|
AUCUNE COMMANDE |
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
|
</span> |
|
|
|
|
|
<span class="info-box-number"></span> |
|
|
|
|
|
<div class="buttons"> |
|
|
|
|
|
<?= Html::a('<span class="fa fa-eye"></span>', ['distribution/index', 'date' => $distribution->date], ['class' => 'btn btn-default']); ?> |
|
|
|
|
|
<?php if(count($distribution->order)): ?><?= Html::a('<span class="fa fa-download"></span>', ['distribution/report', 'date' => $distribution->date], ['class' => 'btn btn-default']); ?><?php endif; ?> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
<?php endforeach; ?> |
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="clr"></div> |
|
|
<div class="clr"></div> |