<?php


return  
    [
        'model' => [
            'model' => \Edulab\College\Models\College::class,
            'table' => 'edulab_college_colleges',
            'hidden'=> [],
            'visible' => [],
            'guarded' => ['*'],
            'slugs' => ['slug' => 'name'],
            'dates' => ['deleted_at', 'created_at', 'updated_at'],
            'appends' => [],
            'fillable' => ['name',  'email',  'phone',  'mobile',  'website',  'address',  'description',  'location',  'logo',  'user_id',  'user_type'],
            'translatables' => [],
            'upload_folder' => 'college/college',
            'uploads' => [
            /*
                    'images' => [
                        'count' => 10,
                        'type'  => 'image',
                    ],
                    'file' => [
                        'count' => 1,
                        'type'  => 'file',
                    ],
            */
            ],

            'casts' => [
            
            /*
                'images'    => 'array',
                'file'      => 'array',
            */
            ],

            'revision' => [],
            'perPage' => '20',
            'search'        => [
                'name'  => 'like',
                'status',
            ]
        ],

        'search' => [
            
        ],

        'list' => [
            [
                "key" => "name", 
                "type" => "text", 
                "label" => 'college::college.label.name', 
                'sort' => true,
                'roles' => [],
            ],
            [
                "key" => "email", 
                "type" => "text", 
                "label" => 'college::college.label.email', 
                'sort' => true,
                'roles' => [],
            ],
            [
                "key" => "phone", 
                "type" => "text", 
                "label" => 'college::college.label.phone', 
                'sort' => true,
                'roles' => [],
            ],
            [
                "key" => "mobile", 
                "type" => "text", 
                "label" => 'college::college.label.mobile', 
                'sort' => true,
                'roles' => [],
            ],
            [
                "key" => "website", 
                "type" => "text", 
                "label" => 'college::college.label.website', 
                'sort' => true,
                'roles' => [],
            ],
            [
                "key" => "address", 
                "type" => "text", 
                "label" => 'college::college.label.address', 
                'sort' => true,
                'roles' => [],
            ],
            [
                "key" => "description", 
                "type" => "text", 
                "label" => 'college::college.label.description', 
                'sort' => true,
                'roles' => [],
            ],
            [
                "key" => "location", 
                "type" => "text", 
                "label" => 'college::college.label.location', 
                'sort' => true,
                'roles' => [],
            ],
            [
                "key" => "logo", 
                "type" => "text", 
                "label" => 'college::college.label.logo', 
                'sort' => true,
                'roles' => [],
            ],
        ],

        'form' => [
            [
                "key" => 'name',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.name',
                "placeholder" => 'college::college.placeholder.name',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
            [
                "key" => 'email',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.email',
                "placeholder" => 'college::college.placeholder.email',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
            [
                "key" => 'phone',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.phone',
                "placeholder" => 'college::college.placeholder.phone',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
            [
                "key" => 'mobile',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.mobile',
                "placeholder" => 'college::college.placeholder.mobile',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
            [
                "key" => 'website',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.website',
                "placeholder" => 'college::college.placeholder.website',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
            [
                "key" => 'address',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.address',
                "placeholder" => 'college::college.placeholder.address',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
            [
                "key" => 'description',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.description',
                "placeholder" => 'college::college.placeholder.description',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
            [
                "key" => 'location',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.location',
                "placeholder" => 'college::college.placeholder.location',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
            [
                "key" => 'logo',
                "element" => 'text',
                "type" => 'text',
                "label" => 'college::college.label.logo',
                "placeholder" => 'college::college.placeholder.logo',
                "rules" => '',
                "group" => "main.main",
                "col" => "6",
                "append" => null,
                "prepend" => null,
                "roles" => [],
                "attributes" => [
                    'wrapper' => [],
                    "label" => [],
                    "element" => [],

                ],
            ],
        ],

        'urls' => [
            'new' => [
                'url' => 'college/college/new',
                'method' => 'GET',
            ],
            'create' => [
                'url' => 'college/college/create',
                'method' => 'GET',
            ],
            'store' => [
                'url' => 'college/college',
                'method' => 'POST',
            ],
            'update' => [
                'url' => 'college/college',
                'method' => 'PUT',
            ],
            'list' => [
                'url' => 'college/college',
                'method' => 'GET',
            ],
            'delete' => [
                'url' => 'college/college',
                'method' => 'DELETE',
            ],
        ],

        'order' => [
            'created_at' => 'college::college.label.created_at',
            'name' => 'college::college.label.name',
            'status' => 'college::college.label.status',
        ],

        'groups' => [
            [
                'icon' => "mdi:account-supervisor-outline",
                'name' => "college::college.groups.main",
                'group' => "main.main",
                'title' => "college::college.groups.main",
            ],
            [
                'icon' => "fe:home",
                'name' => "college::college.groups.details",
                'group' => "main.details",
                'title' => "college::college.groups.details",
            ],
            'images' => [
                'icon' => "fe:home",
                'name' => "college::college.groups.images",
                'group' => "main.images",
                'title' => "college::college.groups.images",
            ],
            'settings' => [
                'icon' => "fe:home",
                'name' => "college::college.groups.settings",
                'group' => "main.settings",
                'title' => "college::college.groups.settings",
            ]
        ],

        'controller' => [
            'provider' => 'Edulab',
            'package' => 'College',
            'module' => 'College',
        ],

        
        
    ];