|
@@ -79,6 +79,10 @@ class DistSiteController extends AdminController
|
|
|
protected function detail($id)
|
|
|
{
|
|
|
return Show::make($id, DistAdminDistributor::with(['appearance']), function (Show $show) {
|
|
|
+ $show->field('domain_type',admin_trans_label('domain_type'))->using(admin_trans_array(config('dictionary.domain_type')));
|
|
|
+ $show->field('secondary_domain');
|
|
|
+ $show->field('custom_domain');
|
|
|
+ $show->divider();
|
|
|
$show->field('site_name');
|
|
|
$show->field('appearance.title' ,admin_trans_field('appearance'));
|
|
|
$show->field('copy_right');
|
|
@@ -87,19 +91,6 @@ class DistSiteController extends AdminController
|
|
|
$dataImages = [$image];
|
|
|
return CommonHelper::displayImage($dataImages,100);
|
|
|
})->unescape();
|
|
|
- $show->field('domain_type',admin_trans_label('domain_type'))->using(admin_trans_array(config('dictionary.domain_type')));
|
|
|
- $show->field('secondary_domain');
|
|
|
- $show->field('custom_domain');
|
|
|
-// $show->field('domain_type',admin_trans_label('domain'))->as(function ($domainType) {
|
|
|
-// $title = "";
|
|
|
-// if ($domainType == 0) {
|
|
|
-// $title = $this->secondary_domain;
|
|
|
-// } else {
|
|
|
-// $title = $this->custom_domain;
|
|
|
-// }
|
|
|
-// return "<span style='color:#586cb1'>$title</span>";
|
|
|
-// })->unescape();
|
|
|
-
|
|
|
$show->field('seo_title');
|
|
|
$show->field('seo_keywords');
|
|
|
$show->field('seo_description');
|
|
@@ -147,7 +138,7 @@ class DistSiteController extends AdminController
|
|
|
$form->text('site_name')->width(9,3)->required();
|
|
|
$form->text('seo_title')->width(9,3)->required();
|
|
|
$form->text('seo_keywords')->width(9,3);
|
|
|
- $form->textarea('seo_description')->width(9,3);
|
|
|
+ $form->textarea('seo_description')->rows(2)->width(9,3);
|
|
|
$form->select('appearance_id',admin_trans_field('appearance'))->width(9,3)->options(DistAppearance::selectOptions())->required();
|
|
|
$form->image("logo")
|
|
|
->autoUpload()
|