<?php
    use common\models\Certificate;
    use yii\helpers\Html;
    use yii\helpers\Url;
    use yii\widgets\ListView;
    
    /**
     * @var Certificate $model
     * @var mixed       $key
     * @var integer     $index
     * @var ListView    $widget
     */
    echo Html::tag('div', $model->name, [ 'class' => 'title-certificate-pg' ]);
    echo Html::tag('iframe', '', [
        'class'       => 'certificate',
        'frameborder' => 0,
        'src'         => 'http://docs.google.com/gview?url=' . Url::to('/storage/certificates/' . $model->link, true) . '&embedded=true',
    ]);
?>
