{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')

@section('Limitless::Content')


    {{-- Description --}}
    @Limitless::ElementCardStart(['title' => "Navigation", 'icon' => 'icon-menu8'])
    <p>
        A vertical area that displays the items for website page navigation.
        Consists of <i>six (6)</i> elements.
    </p>
    @Limitless::ElementCardStop

    {{-- Elements --}}
    @Limitless::ElementCardStart(['title' => "Elements", 'icon' => 'icon-grid5'])

        @Limitless::ElementCardStart(['title' => "NavigationStart"])

            <p>The main opening element for the navigation.</p>
            @Limitless::Divider
            </br>
            <h6>Parameters</h6>
            @Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])

                @Limitless::TableAutofillHeader([
                    ['name' => 'Key'],
                    ['name' => 'Type'],
                    ['name' => 'Description']
                ])

                @Limitless::TableAutofillBody([
                    [
                        ['value' => 'extra'],
                        ['value' => '<i>Array</i> [Default = <code>[]</code>]', 'secure' => false],
                        ['value' => 'Adds custom attributes for the main container. existing attributes such as class will be overwritten.']
                    ]
                ])
            @Limitless::TableStop

        @Limitless::ElementCardStop

        @Limitless::ElementCardStart(['title' => "NavigationStop"])

            <p>The main closing element for the navigation.</p>
            @Limitless::Divider
            </br>
            <h6>Parameters : NONE</h6>

        @Limitless::ElementCardStop

        @Limitless::ElementCardStart(['title' => "NavigationMenuSectionTitle"])

            <p>Navigation section/group title.</p>
            @Limitless::Divider
            </br>
            <h6>Parameters</h6>
            @Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])

                @Limitless::TableAutofillHeader([
                    ['name' => 'Key'],
                    ['name' => 'Type'],
                    ['name' => 'Description']
                ])

                @Limitless::TableAutofillBody([
                    [
                        ['value' => 'title'],
                        ['value' => '<i>String</i> [Default = <code>"No Title"</code>]', 'secure' => false],
                        ['value' => 'The title of the section to display.']
                    ]
                ])

            @Limitless::TableStop

        @Limitless::ElementCardStop

        @Limitless::ElementCardStart(['title' => "NavigationMenuItem"])

        <p>The items that will be displayed for navigation.</p>
        @Limitless::Divider
        </br>
        <h6>Parameters</h6>
        @Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])

            @Limitless::TableAutofillHeader([
                ['name' => 'Key'],
                ['name' => 'Type'],
                ['name' => 'Description']
            ])

            @Limitless::TableAutofillBody([
                [
                    ['value' => 'url'],
                    ['value' => '<i>String</i> [Default = <code>"#"</code>]', 'secure' => false],
                    ['value' => 'The link of the navigation item.']
                ],
                [
                    ['value' => 'target'],
                    ['value' => '<i>String</i> [Default = <code>"_self"</code>]', 'secure' => false],
                    ['value' => "Specifies the window where the linked page will be loaded. <code>_blank | _self | _parent | _top | framename</code>", 'secure' => false]
                ],
                [
                    ['value' => 'icon'],
                    ['value' => '<i>String</i> [Default = <code>"icon-primitive-dot"</code>]', 'secure' => false],
                    ['value' => 'The icon of the navigation item.'],
                ],
                [
                    ['value' => 'title'],
                    ['value' => '<i>String</i> [Default = <code>"No Title"</code>]', 'secure' => false],
                    ['value' => 'The title of the navigation item to display.']
                ]
            ])

        @Limitless::TableStop

        @Limitless::ElementCardStop

        @Limitless::ElementCardStart(['title' => "NavigationMenuStart"])

        <p>The opening and the parent element for the nested navigation items.</p>
        @Limitless::Divider
        </br>
        <h6>Parameters</h6>
        @Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])

            @Limitless::TableAutofillHeader([
                ['name' => 'Key'],
                ['name' => 'Type'],
                ['name' => 'Description']
            ])

            @Limitless::TableAutofillBody([
                [
                    ['value' => 'title'],
                    ['value' => '<i>String</i> [Default = <code>"No Title"</code>]', 'secure' => false],
                    ['value' => 'The title of the nested navigation item.']
                ],
                [
                    ['value' => 'icon'],
                    ['value' => '<i>String</i> [Default = <code>"icon-primitive-dot"</code>]', 'secure' => false],
                    ['value' => 'The icon of the nested navigation item.']
                ]
            ])

        @Limitless::TableStop

        @Limitless::ElementCardStop

        @Limitless::ElementCardStart(['title' => "NavigationMenuStop"])

        <p>The closing element for the nested navigation items.</p>
        @Limitless::Divider
        </br>
        <h6>Parameters : NONE</h6>

        @Limitless::ElementCardStop

    @Limitless::ElementCardStop


    {{-- Sample Output --}}
    @Limitless::ElementCardStart(['title' => "Sample Output", 'icon' => 'icon-display4' ])
        @Limitless::NavigationStart([ 'extra' => ['id' => 'navigation-main', 'data-index' => 1] ])
            @Limitless::NavigationMenuSectionTitle(['title' => 'Menu section title 1'])
            @Limitless::NavigationMenuItem(['url' => '#', 'target' => '_self', 'icon' => 'icon-three-bars', 'title' => 'Menu Item 1'])
            @Limitless::NavigationMenuItem(['url' => '#', 'target' => '_self', 'icon' => 'icon-three-bars', 'title' => 'Menu Item 2'])
            @Limitless::NavigationMenuItem(['url' => '#', 'target' => '_self', 'icon' => 'icon-three-bars', 'title' => 'Menu Item 3'])
            @Limitless::NavigationMenuStart(['title' => 'Level 1 Submenu Item Parent', 'icon' => 'icon-three-bars'])
                @Limitless::NavigationMenuSectionTitle(['title' => 'Menu section title 2'])
                @Limitless::NavigationMenuItem(['url' => '#', 'target' => '_self', 'icon' => 'icon-three-bars', 'title' => 'Level 1 Submenu Item Child 1'])
                @Limitless::NavigationMenuItem(['url' => '#', 'target' => '_self', 'icon' => 'icon-three-bars', 'title' => 'Level 1 Submenu Item Child 2'])
                @Limitless::NavigationMenuStart(['title' => 'Level 2 Submenu Item Parent', 'icon' => 'icon-three-bars'])
                    @Limitless::NavigationMenuSectionTitle(['title' => 'Menu section title 3'])
                    @Limitless::NavigationMenuItem(['url' => '#', 'target' => '_self', 'icon' => 'icon-three-bars', 'title' => 'Level 2 Submenu Item Child 1'])
                    @Limitless::NavigationMenuItem(['url' => '#', 'target' => '_self', 'icon' => 'icon-three-bars', 'title' => 'Level 2 Submenu Item Child 2'])
                @Limitless::NavigationMenuStop
            @Limitless::NavigationMenuStop
        @Limitless::NavigationStop
    @Limitless::ElementCardStop

    @php
        $example = base64_decode("QExpbWl0bGVzczo6RWxlbWVudENhcmRTdGFydChbJ3RpdGxlJyA9PiAiU2FtcGxlIE91dHB1dCIsICdpY29uJyA9PiAnaWN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bnRDYXJkU3RvcA==");
    @endphp

    {{-- Sample Code --}}
    @Limitless::ElementCardStart(['title' => "Sample Code", 'icon' => 'icon-circle-code' ] )
        @Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => $example ])
    @Limitless::ElementCardStop

@stop
