<?php
return [
        
        'validate' => [
                // Blog Manament
                'postBaseUrl' => [ 
                        'mb_ereg_match'  =>   'The field "Post Base URL" must match the regular expression. Ex default "%BLOG_NAME%/%CATEGORY_NAME%". ',
                        'not_regex'  =>   'The field "Post Base URL" cannot contain special character.',
                        'unique'  =>   'The Post Base URL is duplicated.',
                        'forbidden_route'  =>   'This Post Base URL is forbidden.',
                ],
                'categoryBaseUrl' => [
                        'not_regex' => 'The field "Category Base URL" cannot contain special character.',
                        'mb_ereg_match' => 'The field "Category Base URL" must match the regular expression. Ex default "%BLOG_NAME%/%CATEGORY_NAME%". ',
                        'unique' => 'The Category Base URL is duplicated.',
                        'forbidden_route' => 'This category Base URL is forbidden.', 
                ],
                
                
                 // Add Page
                 'AddPage' => [
                         'showMenu' => [
                                 'required' => 'The "showMenu" field is required.',
                         ],
                         'page_name' => [
                                 'required' => 'The "Page Name" field is required.',
                                 'unique' => 'This page name is already used.',
                                 'forbidden_route' => 'This page name is forbidden.',
                         ],
                         
                 ], 
                
                // Add tag folder
                'Addtagfolder' => [
                        'tagname' => [
                                'required' => 'The "tagname" field is required.',
                        ]
                ],
                
                //Add Tag Image Multi
                'AddTagImageMulti' => [ 
                        'imageKey' => [
                                'required' => 'The "imageKey" field is required.',
                        ],
                        'tagfolder' => [
                                'required' => 'The "tagfolder" field is required.', 
                        ],
                ],
                
                //Add Tag Image
                'AddTagImage' => [
                        'imageKey' => [
                                'required' => 'The "imageKey" field is required.'
                        ],
                        'tag' => [
                                'required' => 'The "tag" field is required.'
                        ],
                        'solution' => [
                                'required' => 'The "solution" field is required.'
                        ],
                        'size' => [
                                'required' => 'The "size" field is required.'
                        ],
                        'date' => [
                                'required' => 'The "date" field is required.'
                        ],
                        'tagfolderID' => [
                                'required' => 'The "tagfolderID" field is required.'
                        ],
                        'override' => [
                                'required' => 'The "override" field is required.'
                        ],
                ],
                
                //check Slug Exist
                'checkSlugExist' => [
                        'slug' => [
                                'required' => 'The "slug" field is required.',
                        ],
                ],
                
                //delet edocuments
                'deletedocuments' => [
                        'fileDeleteName' => [
                                'required' => 'The "fileDeleteName" field is required.',
                        ],
                ],
                
                //Delete Image
                'DeleteImage' => [
                        'imageName' => [
                                'required' => 'The "imageName" field is required.',
                        ],
                        'keytag' => [
                                'required' => 'The "keytag" field is required.',
                        ],
                        'imagePath' => [
                                'required' => 'The "imagePath" field is required.',
                        ],
                ],
                
                //Delete Tag Folder
                'DeleteTagFolder' => [
                        'tagname' => [
                                'required' => 'The "tagname" field is required.',
                        ],
                        'tagKey' => [
                                'required' => 'The "tagKey" field is required.',
                        ], 
                ],
                
                //Form Store  +  Form Update
                'FormStore' => [
                        'form_owner_id' => [
                                'required' => 'The "form_owner_id" field is required.',
                        ],
                        'form_mail_content' => [
                                'required' => 'The "form_mail_content" field is required.',
                        ],
                        'form_field_data' => [
                                'required' => 'The "form_field_data" field is required.',
                        ],
                        'form_design_data' => [
                                'required' => 'The "form_design_data" field is required.',
                        ],
                        'action_type' => [
                                'required' => 'The "action_type" field is required.',
                        ],
                        'external_url' => [
                                'required' => 'The "external_url" field is required.',
                        ],
                        'send_to_user' => [
                                'required' => 'The "send_to_user" field is required.',
                        ],
                        'subject' => [
                                'required' => 'The "subject" field is required.',
                        ],
                        'sender_email' => [
                                'required' => 'The "sender_email" field is required.',
                        ],
                        'sender_name' => [
                                'required' => 'The "sender_name" field is required.',
                        ],
                        'reply_to_email' => [
                                'required' => 'The "reply_to_email" field is required.',
                        ],
                        'send_to_admin' => [
                                'required' => 'The "send_to_admin" field is required.'
                        ],
                ],
                
                //Menu Select
                'MenuSelect' => [
                        'type' => [
                                'required' => 'The "type" field is required.',
                                'numeric' => 'The "type" must be 3 digits in maixmum.', 
                        ], 
                ],
                
                //page Property
                'pageProperty' => [
                        'propertyJSON' => [
                                'required' => 'The "propertyJSON" field is required.'
                        ],
                ],
                
                //reset Header
                'resetHeader' => [
                        'slug_id' => [
                                'required' => 'The "slug_id" field is required.'
                        ],
                ],
                
                //reset Template
                'resetTemplate' => [
                        'header_style' => [
                                'required' => 'The "header_style" field is required.',
                        ],
                        'topmenu_style' => [
                                'required' => 'The "topmenu_style" field is required.',
                        ],
                        'menu_style' => [
                                'required' => 'The "menu_style" field is required.',
                        ],
                        'content_view' => [
                                'required' => 'The "content_view" field is required.',
                        ],
                        'content_edit' => [
                                'required' => 'The "content_edit" field is required.'
                        ],
                ],
                
                //return Content Seo
                'returnContentSeo' => [
                        'slug_id' => [
                                'required' => 'The "slug_id" field is required.'
                        ],
                ],
                
                //save Back to top
                'saveBacktotop' => [
                        'backtotop' => [
                                'required' => 'The "backtotop" field is required.'
                        ],
                ],
                
                //Save Brand
                'SaveBrand' => [
                        'tel' =>  'The :attribute must be exactly :size.', 
                        'logo' =>   'The :attribute must be exactly :size.', 
                        'logo_mobile' =>  'The :attribute must be exactly :size.', 
                        'linktohomepage' =>  'The :attribute must be exactly :size.', 
                        'sitebrand' =>   'The :attribute must be exactly :size.' 
                ],
                
                //Save Content All 
                'SaveContentAll' => [
                        'page_id' => [
                                'required' => 'The "page_id" field is required.',
                        ],
                        'pageContentView' => [
                                'required' => 'The "pageContentView" field is required.',
                        ],
                        'pageContentEdit' => [
                                'required' => 'The "pageContentEdit" field is required.'
                        ],
                ],
                
                //Save Css Js
                'SaveCssJs' => [
                        'page_id' => [
                                'required' => 'The "page_id" field is required.',
                        ],
                        'cssCustom' => [
                                'required' => 'The "cssCustom" field is required.',
                        ],
                        'jsCustom' => [
                                'required' => 'The "jsCustom" field is required.',
                        ],
                        'jsGlobal' => [
                                'required' => 'The "jsGlobal" field is required.',
                        ],
                        'cssGlobal' => [
                                'required' => 'The "cssGlobal" field is required.'
                        ],
                ],
                
                //Save Footer
                'SaveFooter' => [
                        'page_id' => [
                                'required' => 'The "page_id" field is required.',
                        ],
                        'content_view' => [
                                'required' => 'The "content_view" field is required.',
                        ],
                        'content_edit' => [
                                'required' => 'The "content_edit" field is required.'
                        ],
                ],
                
                //Save Footer Style
                'SaveFooterStyle' => [
                        'footer_style' => [
                                'required' => 'The "footer_style" field is required.'
                        ],
                ],
                
                //Save Form DaTa
                'SaveFormDaTa' => [
                        'page_id' => [
                                'required' => 'The "page_id" field is required.',
                        ],
                        'add' => [
                                'required' => 'The "add" field is required.',
                        ],
                        'update' => [
                                'required' => 'The "update" field is required.',
                        ],
                        'remove' => [
                                'required' => 'The "remove" field is required.'
                        ],
                ],
                
                //Save Header Content
                'SaveHeaderContent' => [
                        'slug_id' => [
                                'required' => 'The "slug_id" field is required.',
                        ],
                        'content_view' => [
                                'required' => 'The "content_view" field is required.',
                        ],
                        'content_edit' => [
                                'required' => 'The "content_edit" field is required.'
                        ],
                ],
                
                //save Header Style
                'saveHeaderStyle' => [
                        'header_style' => [
                                'required' => 'The "header_style" field is required.',
                        ],
                        'content_view' => [
                                'required' => 'The "content_view" field is required.',
                        ],
                        'content_edit' => [
                                'required' => 'The "content_edit" field is required.',
                        ],
                        'page_id' => [
                                'required' => 'The "page_id" field is required.'
                        ],
                ],
                //Save Image Common
                'SaveImageCommon' => [
                        'data' => [
                                'required' => 'The "data" field is required.',
                        ],
                        'thumnail' => [
                                'required' => 'The "thumnail" field is required.',
                        ],
                        'imageURL' => [
                                'required' => 'The "imageURL" field is required.',
                        ],
                        'override' => [
                                'required' => 'The "override" field is required.',
                        ],
                        'imageName' => [
                                'required' => 'The "imageName" field is required.',
                        ],
                        'imageType' => [
                                'required' => 'The "imageType" field is required.',
                        ],
                        'tagFolder' => [
                                'required' => 'The "tagFolder" field is required.'
                        ],
                ],
                
                //Save Image
                'SaveImage' => [
                        'imgdata' => [
                                'required' => 'The "imgdata" field is required.',
                        ],
                        'header_id' => [
                                'required' => 'The "header_id" field is required.',
                        ],
                        'small' => [
                                'required' => 'The "small" field is required.'
                        ],
                ],
                
                //save Menu
                'saveMenu' => [
                        'type' => [
                                'required' => 'The "type" field is required.'
                        ],
                ],
                
                //save Menu Style
                'saveMenuStyle' => [
                        'page_id' => [
                                'required' => 'The "page_id" field is required.',
                        ],
                        'menu_style' => [
                                'required' => 'The "menu_style" field is required.'
                        ],
                ],
                
                //Save Meta Tag
                'SaveMetaTag' => [
                        'page_id' => [
                                'required' => 'The "page_id" field is required.',
                        ],
                        'meta' => [
                                'required' => 'The "meta" field is required.',
                        ],
                        'globalMeta' => [
                                'required' => 'The "globalMeta" field is required.'
                        ],
                ],
                
                // save Page Option
                'savePageOption' => [
                        'type' => [
                                'required' => 'The "type" field is required.'
                        ],
                ],
                
                // save Page 
                'SavePage' => [
                        'slug_id' => [
                                'required' => 'The "slug_id" field is required.',
                        ],
                        'content_view' => [
                                'required' => 'The "content_view" field is required.',
                        ],
                        'content_edit' => [
                                'required' => 'The "content_edit" field is required.'
                        ],
                ],
                
                //Save Sidebar
                'SaveSidebar' => [
                        'data' => [
                                'required' => 'The "slug_id" field is required.',
                        ],
                        'thumnail' => [
                                'required' => 'The "use_sidebar" field is required.',
                        ],
                        'imageURL' => [
                                'required' => 'The "left_content_view" field is required.',
                        ],
                        'override' => [
                                'required' => 'The "left_content_edit" field is required.',
                        ],
                        'imageName' => [
                                'required' => 'The "right_content_view" field is required.',
                        ],
                        'imageType' => [
                                'required' => 'The "right_content_edit" field is required.'
                        ], 
                ],
                
                //Save Sidebar Style
                'SaveSidebarStyle' => [
                        'slug_id' => [
                                'required' => 'The "slug_id" field is required.',
                        ],
                        'use_sidebar' => [
                                'required' => 'The "use_sidebar" field is required.',
                        ],
                        'left_content_view' => [
                                'required' => 'The "left_content_view" field is required.',
                        ],
                        'left_content_edit' => [
                                'required' => 'The "left_content_edit" field is required.',
                        ],
                        'right_content_view' => [
                                'required' => 'The "right_content_view" field is required.',
                        ],
                        'right_content_edit' => [
                                'required' => 'The "right_content_edit" field is required.'
                        ],
                ],
                
                //Save Site
                'SaveSite' => [
                        'slug_id' => [
                                'required' => 'The "slug_id" field is required.',
                        ],
                        'savetype' => [
                                'required' => 'The "savetype" field is required.',
                        ],
                        'header_content_view' => [
                                'required' => 'The "header_content_view" field is required.',
                        ],
                        'header_content_edit' => [
                                'required' => 'The "header_content_edit" field is required.',
                        ],
                        'footer_content_view' => [
                                'required' => 'The "footer_content_view" field is required.',
                        ],
                        'footer_content_edit' => [
                                'required' => 'The "footer_content_edit" field is required.',
                        ],
                        'page_content_view' => [
                                'required' => 'The "content_view" field is required.',
                        ],
                        'page_content_edit' => [
                                'required' => 'The "content_edit" field is required.',
                        ],
                        'use_sidebar' => [
                                'required' =>  'The "use_sidebar" field is required.',
                        ],
                        'left_content_view' => [
                                'required' => 'The "left_content_view" field is required.',
                        ],
                        'left_content_edit' => [
                                'required' => 'The "left_content_edit" field is required.',
                        ],
                        'right_content_view' => [
                                'required' => 'The "right_content_view" field is required.',
                        ],
                        'right_content_edit' => [
                                'required' => 'The "right_content_edit" field is required.',
                        ],
                ],
                
                //save thumb nail
                'savethumbnail' => [
                        'imgdata' => [
                                'required' => 'The "imgdata" field is required.',
                        ],
                        'header_id' => [
                                'required' => 'The "header_id" field is required.'
                        ],
                ],
                
                //save Top Menu Style
                'saveTopMenuStyle' => [
                        'page_id' => [
                                'required' => 'The "page_id" field is required.',
                        ],
                        'topmenu_style' => [
                                'required' => 'The "topmenu_style" field is required.'
                        ],
                ],
                
                //Set Hide Menu
                'SetHideMenu' => [
                        'show_menu' => [
                                'required' => 'The "show_menu" field is required.'
                        ], 
                ],
                
                // Sidebar Setting
                'SidebarSetting' => [
                        'page_id' => [
                                'required' => 'The "page_id" field is required.',
                        ],
                        'sidebar_left' => [
                                'required' => 'The "sidebar_left" field is required.',
                        ],
                        'sidebar_right' => [
                                'required' => 'The "sidebar_right" field is required.'
                        ],
                ],
                
                // Update Tag Folder
                'UpdateTagFolder' => [
                        'befortag' => [
                                'required' => 'The "befortag" field is required.',
                        ],
                        'tagname' => [
                                'required' => 'The "tagname" field is required.',
                        ],
                        'keytag' => [
                                'required' => 'The "keytag" field is required.'
                        ],
                        'imgKey' => [
                                'required' => 'The "imgKey" field is required.'
                        ],
                ],
                
                //Upload Image Common
                'UploadImageCommon' => [
                        'files' => [
                                'required' => 'The "data" field is required.',
                        ],
                ],
                
        ],
         
];