<?php

use frontend\components\CustomerTabWidget;
use yii\grid\GridView;
use yii\helpers\Html;

?>
<?php echo CustomerTabWidget::widget(['card' => $card])?>


<p>
    <?php
    echo Html::a("Ujjlenyomat hozzáadása", ['create', 'id_card' => $card->id_card], ['class' => 'btn btn-success']);
    ?>
</p>


<?php


echo GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        [
            'attribute' => 'fingerprint',
            'label' => "Ujjlenyomat"
        ],
        [
            'attribute' => 'created_at',
            'label' => "Létrehozva",
            'format' => 'datetime'
        ],
        ['class' => 'yii\grid\ActionColumn',
            'template' => '{delete}',
        ]
    ]
]);
?>
