<?php
use wap\assets\AppAsset;
use yii\helpers\Html;
use yii\helpers\Url;

$this->title = '选择费用申请单';

/* @var $this \yii\web\View */

$asset = $this->getAssetManager()->getBundle(AppAsset::className());
$this->registerJsFile($asset->baseUrl . '/js/reimbursement.application.js', ['depends' => [AppAsset::className()]]);
?>
<script>
var reimUrl = "<?= Url::to(['/reimbursement/create', 'link_id' => Yii::$app->request->get('link_id'), 'link_type' => Yii::$app->request->get('link_type')]) ?>";
</script>

<div class="mainbody">
    <form>
        <div class="common-list application-list">
            <ul >
                <?php foreach ($models as $model) : ?>
                <li>
                <label>
                    <h4><?= $model['name'] ?></h4>
                    <p>【<?= isset(Yii::$app->cache->get('user_list')[$model['user_id']]['realname'])?Yii::$app->cache->get('user_list')[$model['user_id']]['realname']:'' ?>】<span><?= date('Y-m-d', $model['create_time']) ?></span>金额：<?= $model['money'] ?></p>
                    <input type="radio" name="appli_id" value="<?= $model['appli_id'] ?>" data-appli-name="<?= $model['name'] ?>" />
                </label>
                </li>
                <?php endforeach; ?>
            </ul>
        </div>
        <p style="padding:0px 10px; margin-top:-10px; height:60px;">
        <button type="button" id="confirm-btn" class="btn btn-primary btn-back">确  认</button>
        <button type="button" id="cancel-btn" class="btn btn-default btn-jiechu">取  消</button>
        </p>
    <form>
</div>

