[ 'model' => \Bixo\Payment\Models\Payment::class, 'table' => 'bixo_payment_payments', 'hidden'=> [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'created_at', 'updated_at'], 'appends' => [], 'fillable' => ['user_id', 'car_id', 'payment_method', 'amount', 'status', 'transaction_date'], 'translatables' => [], 'upload_folder' => 'payment/payment', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ 'marking' => 'array', /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'search' => [ ], 'list' => [ [ "key" => "car_id", "type" => "text", "label" => 'payment::payment.label.car_id', 'sort' => true, 'roles' => [], ], [ "key" => "payment_method", "type" => "text", "label" => 'payment::payment.label.payment_method', 'sort' => true, 'roles' => [], ], [ "key" => "amount", "type" => "text", "label" => 'payment::payment.label.amount', 'sort' => true, 'roles' => [], ], [ "key" => "transaction_date", "type" => "text", "label" => 'payment::payment.label.transaction_date', 'sort' => true, 'roles' => [], ], ], 'form' => [ [ "key" => 'car_id', "element" => 'package::package.formcontrols.INT', "type" => 'package::package.formcontrols.INT', "label" => 'payment::payment.label.car_id', "placeholder" => 'payment::payment.placeholder.car_id', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'payment_method', "element" => 'package::package.formcontrols.ENUM', "type" => 'package::package.formcontrols.ENUM', "label" => 'payment::payment.label.payment_method', "placeholder" => 'payment::payment.placeholder.payment_method', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'amount', "element" => 'package::package.formcontrols.DECIMAL', "type" => 'package::package.formcontrols.DECIMAL', "label" => 'payment::payment.label.amount', "placeholder" => 'payment::payment.placeholder.amount', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], [ "key" => 'transaction_date', "element" => 'package::package.formcontrols.TIMESTAMP', "type" => 'package::package.formcontrols.TIMESTAMP', "label" => 'payment::payment.label.transaction_date', "placeholder" => 'payment::payment.placeholder.transaction_date', "rules" => '', "group" => "main.main", "col" => "6", "append" => null, "prepend" => null, "roles" => [], "attributes" => [ 'wrapper' => [], "label" => [], "element" => [], ], ], ], 'urls' => [ 'new' => [ 'url' => 'payment/payment/new', 'method' => 'GET', ], 'create' => [ 'url' => 'payment/payment/create', 'method' => 'GET', ], 'store' => [ 'url' => 'payment/payment', 'method' => 'POST', ], 'update' => [ 'url' => 'payment/payment', 'method' => 'PUT', ], 'list' => [ 'url' => 'payment/payment', 'method' => 'GET', ], 'delete' => [ 'url' => 'payment/payment', 'method' => 'DELETE', ], ], 'order' => [ 'created_at' => 'payment::payment.label.created_at', 'name' => 'payment::payment.label.name', 'status' => 'payment::payment.label.status', ], 'groups' => [ [ 'icon' => "mdi:account-supervisor-outline", 'name' => "payment::payment.groups.main", 'group' => "main.main", 'title' => "payment::payment.groups.main", ], [ 'icon' => "fe:home", 'name' => "payment::payment.groups.details", 'group' => "main.details", 'title' => "payment::payment.groups.details", ], 'images' => [ 'icon' => "fe:home", 'name' => "payment::payment.groups.images", 'group' => "main.images", 'title' => "payment::payment.groups.images", ], 'settings' => [ 'icon' => "fe:home", 'name' => "payment::payment.groups.settings", 'group' => "main.settings", 'title' => "payment::payment.groups.settings", ] ], 'controller' => [ 'provider' => 'Bixo', 'package' => 'Payment', 'module' => 'Payment', ], 'workflow' => [ 'type' => 'workflow', 'marking_store' => [ 'type' => 'multiple_state', 'arguments' => ['status'], // 'property' => 'status' ], 'supports' => [ \Bixo\Payment\Models\Payment::class, ], 'places' => [ 'Draft', 'Pending', 'Approved', 'Closed', 'Published', 'Archived', 'Unpublished', ], 'initial_places' => ['Draft'], 'transitions' => [ 'submit' => [ 'from' => 'Draft', 'to' => 'Pending', 'metadata' => [ 'roles' => [ 'user' => ['*'], ], 'rules' => [ 'name' => 'required', ] ], ], 'reject' => [ 'from' => 'Pending', 'to' => 'Draft', 'metadata' => [ 'roles' => [ 'user' => ['superuser'], 'team' => ['admin', 'manager'], ], 'form' => [ 'title' => 'Reject', 'button' => [ 'cancel' > [ 'icon' > '', 'varient' > '', 'label' > 'Cancel' ], 'submit' > [ 'icon' > '', 'varient' > 'primary', 'label' > 'Reject' ] ], 'fields' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'advert::advert.label.count', "placeholder" => 'advert::advert.placeholder.count', "options" => call_user_func(function () { return [ 1 => ['value' => 1, 'text' => 1], 2 => ['value' => 2, 'text' => 2], 3 => ['value' => 3, 'text' => 3], 4 => ['value' => 4, 'text' => 4], ]; }), "col" => "12", ], 'comment' => [ "element" => 'textarea', "type" => 'text', "required" => 'required', "label" => 'advert::advert.label.comment', "placeholder" => 'advert::advert.placeholder.comment', "col" => "12", ], ], ], ], ], 'approve' => [ 'from' => 'Pending', 'to' => 'Approved', 'metadata' => [ 'roles' => [ 'user' => ['superuser'], 'team' => ['admin', 'manager'], ] ], ], 'publish' => [ 'from' => ['Approved', 'Unpublished'], 'to' => 'Published', 'metadata' => [ 'roles' => [ 'user' => ['superuser'], 'team' => ['admin'], ] ], ], 'unpublish' => [ 'from' => ['Published'], 'to' => 'Unpublished', 'metadata' => [ 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], ] ], ], 'archive' => [ 'from' => ['Published', 'Unpublished'], 'to' => 'Archived', 'metadata' => [ 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], ] ], ], 'unarchive' => [ 'from' => ['Archived'], 'to' => 'Draft', 'metadata' => [ 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], ] ], ], ], ], 'actions' => [ 'copy' => [ 'type' => ['Details', 'List'], 'label' => 'payment::payment.action.copy', 'roles' => [ 'user' => ['superuser', 'admin'], 'team' => ['admin'], 'permission' => ['payment.payment.copy', 'payment.payment.duplicate'], ], 'form' => [ 'count' => [ "element" => 'select', "type" => 'select', "label" => 'payment::payment.label.count', "placeholder" => 'payment::payment.placeholder.count', "options" => call_user_func(function () { return [ 1 => ['value' => 1, 'text' => 1], 2 => ['value' => 2, 'text' => 2], 3 => ['value' => 3, 'text' => 3], 4 => ['value' => 4, 'text' => 4], ]; }), "col" => "12", ], 'comment' => [ "element" => 'textarea', "type" => 'text', "required" => 'required', "label" => 'payment::payment.label.comment', "placeholder" => 'payment::payment.placeholder.comment', "col" => "12", ], ], ], 'empty' => [ 'type' => ['List', 'Details'], 'label' => 'payment::payment.action.empty', 'roles' => [ 'user' => ['superuser'], ], ], 'section' => [ 'type' => ['Group'], 'api_url' => '', 'action' => 'list', 'label' => 'payment::payment.action.section', 'store' => 'main.units', 'group' => 'main.units' ], ] ];