|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace App\View\Components; |
| 4 | + |
| 5 | +use Illuminate\View\Component; |
| 6 | + |
| 7 | +class DocsNavigation extends Component |
| 8 | +{ |
| 9 | + const LINKS = [ |
| 10 | + '' => [ |
| 11 | + 'Getting Started' => '/documentation', |
| 12 | + 'API Versions' => '/documentation/versions', |
| 13 | + 'Changelog' => '/changelog', |
| 14 | + ], |
| 15 | + 'Font Awesome 6' => [ |
| 16 | + 'Overview' => '/documentation/font-awesome/v6', |
| 17 | + 'Pins' => '/documentation/font-awesome/v6/pins', |
| 18 | + 'Icons' => '/documentation/font-awesome/v6/icons', |
| 19 | + 'Icon Stacks' => '/documentation/font-awesome/v6/icon-stacks', |
| 20 | + ], |
| 21 | + 'Font Awesome 5' => [ |
| 22 | + 'Overview' => '/documentation/font-awesome/v5', |
| 23 | + 'Pins' => '/documentation/font-awesome/v5/pins', |
| 24 | + 'Icons' => '/documentation/font-awesome/v5/icons', |
| 25 | + 'Icon Stacks' => '/documentation/font-awesome/v5/icon-stacks', |
| 26 | + ], |
| 27 | + 'Font Awesome 4' => [ |
| 28 | + 'Overview' => '/documentation/font-awesome/v4', |
| 29 | + 'Pins' => '/documentation/font-awesome/v4/pins', |
| 30 | + 'Icons' => '/documentation/font-awesome/v4/icons', |
| 31 | + 'Icon Stacks' => '/documentation/font-awesome/v4/icon-stacks', |
| 32 | + ], |
| 33 | + 'Integrations' => [ |
| 34 | + 'Overview' => '/documentation/integrations', |
| 35 | + 'Bing Maps' => '/documentation/integrations/bing-maps', |
| 36 | + 'Google Maps' => '/documentation/integrations/google-maps', |
| 37 | + 'Mapbox' => '/documentation/integrations/mapbox', |
| 38 | + ], |
| 39 | + 'More' => [ |
| 40 | + 'License' => '/license', |
| 41 | + 'Terms of Service' => '/terms', |
| 42 | + 'Privacy Policy' => '/privacy', |
| 43 | + ], |
| 44 | + ]; |
| 45 | + |
| 46 | + public $linkGroups; |
| 47 | + |
| 48 | + /** |
| 49 | + * Create a new component instance. |
| 50 | + * |
| 51 | + * @return void |
| 52 | + */ |
| 53 | + public function __construct() |
| 54 | + { |
| 55 | + $this->linkGroups = self::LINKS; |
| 56 | + } |
| 57 | + |
| 58 | + /** |
| 59 | + * Get the view / contents that represent the component. |
| 60 | + * |
| 61 | + * @return \Illuminate\Contracts\View\View|\Closure|string |
| 62 | + */ |
| 63 | + public function render() |
| 64 | + { |
| 65 | + return view('components.docs-navigation'); |
| 66 | + } |
| 67 | +} |
0 commit comments