X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/platform/plugins/real-estate/src/Forms
home
/
gfecatvj
/
sites
/
restate
/
platform
/
plugins
/
real-estate
/
src
/
Forms
/
📁
..
📄
CategoryForm.php
(1.86 KB)
📄
ConsultForm.php
(1.33 KB)
📄
FeatureForm.php
(867 B)
📁
Fields
📄
InvestorForm.php
(1.27 KB)
📄
ProjectForm.php
(11.07 KB)
📄
PropertyForm.php
(13.19 KB)
Editing: InvestorForm.php
<?php namespace Botble\RealEstate\Forms; use Botble\Base\Forms\FormAbstract; use Botble\Base\Enums\BaseStatusEnum; use Botble\RealEstate\Http\Requests\InvestorRequest; use Botble\RealEstate\Models\Investor; use Throwable; class InvestorForm extends FormAbstract { /** * @return mixed|void * @throws Throwable */ public function buildForm() { $this ->setupModel(new Investor) ->setValidatorClass(InvestorRequest::class) ->withCustomFields() ->add('name', 'text', [ 'label' => trans('core/base::forms.name'), 'label_attr' => ['class' => 'control-label required'], 'attr' => [ 'placeholder' => trans('core/base::forms.name_placeholder'), 'data-counter' => 120, ], ]) ->add('status', 'customSelect', [ 'label' => trans('core/base::tables.status'), 'label_attr' => ['class' => 'control-label required'], 'attr' => [ 'class' => 'form-control select-full', ], 'choices' => BaseStatusEnum::labels(), ]) ->setBreakFieldPoint('status'); } }
Upload File
Create Folder