add editable account on reception/customer-cart, add towel handling
This commit is contained in:
@@ -136,4 +136,23 @@ if ( isset( $model->unpaidTickets ) ) {
|
||||
}
|
||||
|
||||
|
||||
if ( isset($model->customer)){
|
||||
|
||||
if ( $model->customer->towel_count > 0 ){
|
||||
$towelText = "Kiadott törölközők (db):" . $model->customer->towel_count;
|
||||
$towelClass = "alert alert-danger";
|
||||
}else{
|
||||
$towelText = "Nincs kiadott törölköző";
|
||||
$towelClass = "alert alert-success";
|
||||
}
|
||||
|
||||
|
||||
echo Html::beginTag("div",['class'=> $towelClass, "role"=>"alert"]);
|
||||
echo Html::beginTag("strong",[ ]);
|
||||
echo $towelText;
|
||||
echo Html::endTag("strong");
|
||||
echo Html::endTag("div");
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user