<?php

use home\assets\MainAsset;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use home\modules\customer\models\Contacter;

/* @var $this \yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \home\modules\customer\models\Customer */

$this->title = '详情-' . $model->name;
?>


<!--container-->
<div class="container manage-project fix">
    <!--manage-left -->

    <div class="manage-right">
        <div class="task-title">
            <p class="lefttitle"><span>联系人名称：</span><?= $model['name'] ?></p>
        </div>
        <div class="mgt10">
            <table class="table task-table taskdetail-table">
                <tr>
                    <td width="20%" class="table-blue" >联系人名称</td>
                    <td width="30%"><?= $model['name'] ?></td>
                    <td width="20%" class="table-blue"  >职务</td>
                    <td width="30%"><?= empty($model['job']) ? '' : $model['job'] ?></td>
                </tr>
                <tr>
                    <td width="20%" class="table-blue"  >电话</td>
                    <td width="30%"><?= $model['phone'] ?></td>
                    <td width="20%" class="table-blue"  >所属客户</td>
                    <td width="30%">
                        <a target="_blank" href="<?= !empty($model['customer']['name'])?Url::to(['/customer/customer/detail', 'id' => $model['customer']['customer_id']]): 'javascript:;' ?>">
                            <?= empty($model['customer']['name']) ? '' : $model['customer']['name'] ?>
                        </a>
                    </td>
                </tr>

                <tr>
                    <td width="20%" class="table-blue"  >备注信息</td>
                    <td width="30%" colspan="3"  style=" text-align: left"><?= empty($model['remark']) ? '' : $model['remark'] ?></td>
                </tr>
            </table>
        </div>
        <!--loglist-->
    </div>
    <!--manage-right-->
</div>
<!--container-->