<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '捐赠';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="donation-index">


    <p>
        <?= Html::a('新捐赠', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <div class="box box-success">
        <div class="box-body">
            <?= GridView::widget([
                'dataProvider' => $dataProvider,
                'columns' => [
                    'id',
                    'name',
                    'source',
                    'money',
                    'remark',
                    'created_at:datetime',

                    ['class' => 'yii\grid\ActionColumn'],
                ],
            ]); ?>
        </div>
    </div>

</div>
