use yii\helpers\Html;
//use frontend\assets\MemberAsset;
use app\models\Client;
use frontend\models\DealerDetail;
use frontend\models\DealerHeader;
//
//MemberAsset::register($this);
if (isset($id_client_dealer)) {
    $id_client_dealer;
    $cliend_dealer = Client::findIdentity($id_client_dealer);
}
$nama_lf = '';
$nama_dealer = '';
$id_client = $id_client;
$model = Client::findIdentity($id_client);
if (!empty($model)) {
    $nama_lf = $model['fullname'];
}
$sales_dealer = DealerDetail::find()->select('id, id_dealer, id_client')->where('id_client = ' . $id_client)->orderBy('create_time DESC')->one();
if (!empty($sales_dealer)) {
    $dealer = DealerHeader::getOne($sales_dealer['id_dealer']);
    $nama_dealer = $dealer['nama'];
}
?>

<p>Bapak/Ibu Pimpinan Authorized Dealer Yth,</p>

<p>
    Bersama ini kami mohon verifikasi <i>Sales Force</i> bernama <strong><?php 
echo !empty($nama_lf) ? $nama_lf : '-';