<?php


    /*
    |------------------------------------------------------------------------------------------------
    | Information
    |------------------------------------------------------------------------------------------------
    |
    | This file is beautified by the command "sidekick:CodebeautifierCommand" of the ceetrox
    | sidekick package.
    |
    | Author: Marco Schmiedel <marco.schmiedel@itmax.email>
    | Update: 2022-06-15 10:07:09
    |
    */
    namespace Ceetrox\Sidekick\Views\Limitless\Datatable;


    /*
    |------------------------------------------------------------------------------------------------
    | Dependencies
    |------------------------------------------------------------------------------------------------
    */
    use View;


    /*
    |------------------------------------------------------------------------------------------------
    | Class "Config"
    |------------------------------------------------------------------------------------------------
    */
    class Config
    {
        public $methodAllocation = [
            'Limitless::DatatableStart' => 'datatableStart',
            'Limitless::DatatableStop' => 'datatableStop',
        ];

        public $assetAllocation;

        public function __construct()
        {
            $this->assetAllocation = [
                'Limitless::DatatableStart' => [
                'Attachments/datatables.js',
                'Attachments/jquery.datatables.js',
                ]
            ];
        }

//      this jquery datatables
//    secure_url("/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/demo_pages/datatables_basic.js"),
//    secure_url("/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/plugins/tables/datatables/datatables.min.js"),
//    secure_url("/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/js/plugins/forms/selects/select2.min.js"),

        // NEXUS LIMITLESS
//    'Attachments/datatables.js',
//    'Attachments/jquery.datatables.js'
//    'Attachments/jquery.datatables.css',
//    'Attachments/exporting/buttons,print.min.js',
//    'Attachments/exporting/buttons.flash.min.js',
//    'Attachments/exporting/buttons.html5.min.js',
//    'Attachments/exporting/datatables.buttons.min.js',
//    'Attachments/exporting/jszip.min.js',
//    'Attachments/exporting/pdfmake.min.js',
//    'Attachments/exporting/vfs.fonts.js',
//    'datatable.css'

        /*
        |--------------------------------------------------------------------------------------------
        | Method "datatableStart"
        |--------------------------------------------------------------------------------------------
        */
        public function datatableStart($parameters)
        {
            return View('Limitless::Datatable.Start')
                ->withExtra( ($parameters['extra'] ?? []) );

        }


        /*
        |--------------------------------------------------------------------------------------------
        | Method "datatableStop"
        |--------------------------------------------------------------------------------------------
        */
        public function datatableStop($parameters)
        {
            return View('Limitless::Datatable.Stop');

        }

    }



