分类
PLAN A

laravel-admin 嵌入视图标准化写法

1.jrxt ClueFollowUpController

$form->block(8, function (Form\BlockForm $form) {
$detail_data=........;
$htmlContent = View::make('clue.main', compact('detail_data'))->render();
$form->width(12);
$form->html($htmlContent);

jrxt\app\Admin\Controllers\HomeController.php

$row->column(6, function (Column $column) {
	$column->row(function (Row $row) {
	$data1 = DB::table('clue_info')->where('user_id',null)->count();
        $data = DB::table('clue_info')->where('user_id','!=',null)->count();
	$htmlContent = View::make('echarts.pie-simple', compact('data', 'data1'))->render();
	$row->column(12, $htmlContent);
	});
});