fitness-web/backend/views/contract/index-customer.php

58 lines
1.3 KiB
PHP

<?php
use yii\helpers\Html;
use yii\grid\GridView;
use backend\components\AdminCustomerTabWidget;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\ContractSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = "Vendég szerződések";
$this->params['breadcrumbs'][] = "Vendég";
$this->params['breadcrumbs'][] = "Szerződések";
?>
<?php echo AdminCustomerTabWidget::widget(['customer' => $searchModel->customer]) ?>
<div class="contract-index">
<?php // echo $this->render('_search-customer', ['model' => $searchModel]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
[
'label' => 'Szerződés azonosító',
'value' => 'id_contract',
'attribute' =>'id_contract',
],
[
'label' => 'Felhasználó',
'value' => 'userName',
'attribute' =>'id_user',
],
[
'label' => 'Státusz',
'value' => 'statusName',
'attribute' =>'status',
],
[
'label' => 'Állapot',
'value' => 'flagName',
'attribute' =>'flag',
],
[
'label' => 'Lejárat',
'value' => 'expired_at',
'attribute' =>'expired_at',
'format' => 'date'
],
'created_at:datetime',
// ['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>