|
|
@ -1,6 +1,7 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
namespace App\AdminAgent\Forms; |
|
|
namespace App\AdminAgent\Forms; |
|
|
|
|
|
use App\Common\AgentType; |
|
|
use App\Common\UserStatus; |
|
|
use App\Common\UserStatus; |
|
|
use App\Models\Agent; |
|
|
use App\Models\Agent; |
|
|
use Dcat\Admin\Admin; |
|
|
use Dcat\Admin\Admin; |
|
|
@ -49,17 +50,20 @@ class AgentInfo extends Form |
|
|
public function form() |
|
|
public function form() |
|
|
{ |
|
|
{ |
|
|
Admin::translation('agent'); |
|
|
Admin::translation('agent'); |
|
|
|
|
|
|
|
|
|
|
|
$this->radio('type') |
|
|
|
|
|
->options(AgentType::array()) |
|
|
|
|
|
->required() |
|
|
|
|
|
->disable(); |
|
|
$this->text('name')->required(); |
|
|
$this->text('name')->required(); |
|
|
$this->text('company_name')->required(); |
|
|
|
|
|
$this->text('credit_codes')->required(); |
|
|
|
|
|
$this->text('address')->required(); |
|
|
|
|
|
|
|
|
$this->text('company_name')->required()->disable(); |
|
|
|
|
|
$this->text('credit_codes')->required()->disable(); |
|
|
|
|
|
$this->text('address')->required()->disable(); |
|
|
$this->text('director')->required(); |
|
|
$this->text('director')->required(); |
|
|
$this->text('contact_phone')->required(); |
|
|
$this->text('contact_phone')->required(); |
|
|
$this->image('logo')->required(); |
|
|
$this->image('logo')->required(); |
|
|
$this->image('avatar'); |
|
|
$this->image('avatar'); |
|
|
$this->image('license_pic')->required(); |
|
|
|
|
|
$this->text('legal_persona_name')->required(); |
|
|
|
|
|
|
|
|
$this->image('license_pic')->required()->disable(); |
|
|
|
|
|
$this->text('legal_persona_name')->required()->disable(); |
|
|
$this->text('legal_persona_wechat')->required(); |
|
|
$this->text('legal_persona_wechat')->required(); |
|
|
|
|
|
|
|
|
$this->editor('agentInfo.about')->required(); |
|
|
$this->editor('agentInfo.about')->required(); |
|
|
|