'bixo', /* * Package. */ 'package' => 'listing', /* * Modules. */ 'modules' => ['referral'], 'referral' => [ 'model' => [ 'model' => \Bixo\Listing\Models\Referral::class, 'table' => 'referrals', 'presenter' => \Bixo\Listing\Repositories\Presenter\ReferralPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'createdat', 'updated_at'], 'appends' => [], 'fillable' => ['id', 'agent_id', 'referral_id', 'expiry_at', 'agent_percentage', 'buyer_percentage', 'establishment_name', 'address1', 'address2', 'phone', 'email', 'fax', 'orn', 'ded_lisc', 'po_box', 'buyer_agent_name', 'buyer_agent_brn', 'buyer_agent_date_issued', 'buyer_agent_mobile', 'buyer_agent_email', 'fee_payby', 'budget', 'documents', 'user_id', 'created_at', 'updated_at', 'deleted_at'], 'translatables' => [], 'upload_folder' => 'listing/referral', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'controller' => [ 'provider' => 'Bixo', 'package' => 'Listing', 'module' => 'Referral', ], 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Referral created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Referral completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Referral verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Referral approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Referral published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Referral unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Referral archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Referral deleted", 'status' => ['delete', 'archive'], ], ], ], ], ];