[
  {
    "path": ".editorconfig",
    "content": "; This file is for unifying the coding style for different editors and IDEs.\n; More information at http://editorconfig.org\n\nroot = true\n\n[*]\ncharset = utf-8\nindent_size = 4\nindent_style = space\nend_of_line = lf\ninsert_final_newline = true\ntrim_trailing_whitespace = true\n\n[*.md]\ntrim_trailing_whitespace = false\n\n[*.js]\nindent_size = 2\n"
  },
  {
    "path": ".gitattributes",
    "content": "# Path-based git attributes\n# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html\n\n# Ignore all test and documentation with \"export-ignore\".\n/.gitattributes     export-ignore\n/.gitignore         export-ignore\n/.travis.yml        export-ignore\n/phpunit.xml.dist   export-ignore\n/.scrutinizer.yml   export-ignore\n/tests              export-ignore\n/.editorconfig      export-ignore\n/.github            export-ignore\n/.php_cs.dist       export-ignore\n/.prettierrc        export-ignore\n"
  },
  {
    "path": ".github/CHANGELOG.md",
    "content": "# Changelog\n\nAll notable changes to `nebula` will be documented in this file\n\n## 0.2.0 - 2020-09-24\n\n- Table components\n- Better fields API\n- Many \"bug\" fixes\n- Resource queries\n- Domain support by [Dennis Smink](https://github.com/Cannonb4ll)\n- Cleaner code and GH workflows by [Gregori Piñeres](https://github.com/gregorip02)\n\n## 0.1.0 - 2020-09-22\n\n- initial public release\n"
  },
  {
    "path": ".github/CONTRIBUTING.md",
    "content": "# Contributing\n\nContributions are **welcome** and will be fully **credited**.\n\nPlease read and understand the contribution guide before creating an issue or pull request.\n\n## Etiquette\n\nThis project is open source, and as such, the maintainers give their free time to build and maintain the source code\nheld within. They make the code freely available in the hope that it will be of use to other developers. It would be\nextremely unfair for them to suffer abuse or anger for their hard work.\n\nPlease be considerate towards maintainers when raising issues or presenting pull requests. Let's show the\nworld that developers are civilized and selfless people.\n\nIt's the duty of the maintainer to ensure that all submissions to the project are of sufficient\nquality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.\n\n## Viability\n\nWhen requesting or submitting new features, first consider whether it might be useful to others. Open\nsource projects are used by many developers, who may have entirely different needs to your own. Think about\nwhether or not your feature is likely to be used by other users of the project.\n\n## Procedure\n\nBefore filing an issue:\n\n- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.\n- Check to make sure your feature suggestion isn't already present within the project.\n- Check the pull requests tab to ensure that the bug doesn't have a fix in progress.\n- Check the pull requests tab to ensure that the feature isn't already in progress.\n\nBefore submitting a pull request:\n\n- Check the codebase to ensure that your feature doesn't already exist.\n- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.\n\n## Code quality\n\nPlease format your code with php-cs-fixer before submitting the pull request. You can format the code by executing `php-cs-fixer fix`.\n\n**Happy coding**!\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "github: [larsklopstra]\n"
  },
  {
    "path": ".github/LICENSE.md",
    "content": "MIT License\n\nCopyright (c) Lars Klopstra\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
  },
  {
    "path": ".github/README.md",
    "content": "# Nebula\n\n<p align=\"center\"><a href=\"https://nebulapackage.com\" target=\"_blank\"><img src=\"https://nebulapackage.com/preview.png\"></a></p>\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/larsklopstra/nebula.svg?style=flat-square)](https://packagist.org/packages/larsklopstra/nebula)\n[![Total Downloads](https://img.shields.io/packagist/dt/larsklopstra/nebula.svg?style=flat-square)](https://packagist.org/packages/larsklopstra/nebula)\n\nNebula is a minimalistic and easy to use administration tool for Laravel applications, made with Laravel, Alpine.js, and Tailwind CSS.\n\nNebula makes you write less code and lets you focus more on the product by lessening the code required to build CRUD interfaces and metrics. Nebula offers a rich CLI and a set of metrics and form fields that does the heavy lifting for you.\n\n**This is the pre 1.0.0 version, the API might be subject to change. Please be careful with using this version in production apps.**\n\nJoin our [Discord](https://discord.gg/xRndbjE) if you have any questions or would like to be an active member in the Nebula community.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require larsklopstra/nebula\n```\n\n## Usage\n\nPlease read the documentation at [nebulapackage.com](https://nebulapackage.com).\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email larsklopstra@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Lars Klopstra](https://github.com/larsklopstra)\n- [All Contributors](https://github.com/nebulapackage/nebula/graphs/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Laravel Package Boilerplate\n\nThis package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).\n"
  },
  {
    "path": ".github/workflows/tests.yml",
    "content": "name: Tests\n\non:\n    push:\n    pull_request:\n\njobs:\n    tests:\n        runs-on: ${{ matrix.os }}\n        strategy:\n            fail-fast: false\n            matrix:\n                php: [7.4]\n                os: [ubuntu-latest]\n\n        name: PHP${{ matrix.php }} on ${{ matrix.os }}\n        container:\n            image: lorisleiva/laravel-docker:${{ matrix.php }}\n        steps:\n            - name: Checkout code\n              uses: actions/checkout@v2\n\n            - name: Validate composer files\n              run: composer validate\n\n            - name: Cache dependencies\n              uses: actions/cache@v1\n              with:\n                path: ~/.composer/cache/files\n                key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}\n\n            - name: Install dependencies\n              run: composer install --prefer-dist --no-progress --no-suggest --no-interaction\n\n            - name: Run tests\n              run: vendor/bin/phpunit\n"
  },
  {
    "path": ".gitignore",
    "content": "build\ncomposer.lock\ndocs\nvendor\ncoverage\nnode_modules\n.php_cs.cache\n.idea\n.phpunit.result.cache\n"
  },
  {
    "path": ".php_cs.dist",
    "content": "<?php\n\nuse PhpCsFixer\\Config;\nuse PhpCsFixer\\Finder;\n\n$rules = [\n    'array_syntax' => ['syntax' => 'short'],\n    'binary_operator_spaces' => [\n        'default' => 'single_space',\n        'operators' => ['=>' => null]\n    ],\n    'blank_line_after_namespace' => true,\n    'blank_line_after_opening_tag' => true,\n    'blank_line_before_statement' => [\n        'statements' => ['return']\n    ],\n    'braces' => true,\n    'cast_spaces' => true,\n    'class_attributes_separation' => [\n        'elements' => ['method']\n    ],\n    'class_definition' => true,\n    'concat_space' => [\n        'spacing' => 'none'\n    ],\n    'declare_equal_normalize' => true,\n    'elseif' => true,\n    'encoding' => true,\n    'full_opening_tag' => true,\n    'fully_qualified_strict_types' => true, // added by Shift\n    'function_declaration' => true,\n    'function_typehint_space' => true,\n    'heredoc_to_nowdoc' => true,\n    'include' => true,\n    'increment_style' => ['style' => 'post'],\n    'indentation_type' => true,\n    'linebreak_after_opening_tag' => true,\n    'line_ending' => true,\n    'lowercase_cast' => true,\n    'lowercase_constants' => true,\n    'lowercase_keywords' => true,\n    'lowercase_static_reference' => true, // added from Symfony\n    'magic_method_casing' => true, // added from Symfony\n    'magic_constant_casing' => true,\n    'method_argument_space' => true,\n    'native_function_casing' => true,\n    'no_alias_functions' => true,\n    'no_extra_blank_lines' => [\n        'tokens' => [\n            'extra',\n            'throw',\n            'use',\n            'use_trait',\n        ]\n    ],\n    'no_blank_lines_after_class_opening' => true,\n    'no_blank_lines_after_phpdoc' => true,\n    'no_closing_tag' => true,\n    'no_empty_phpdoc' => true,\n    'no_empty_statement' => true,\n    'no_leading_import_slash' => true,\n    'no_leading_namespace_whitespace' => true,\n    'no_mixed_echo_print' => [\n        'use' => 'echo'\n    ],\n    'no_multiline_whitespace_around_double_arrow' => true,\n    'multiline_whitespace_before_semicolons' => [\n        'strategy' => 'no_multi_line'\n    ],\n    'no_short_bool_cast' => true,\n    'no_singleline_whitespace_before_semicolons' => true,\n    'no_spaces_after_function_name' => true,\n    'no_spaces_around_offset' => true,\n    'no_spaces_inside_parenthesis' => true,\n    'no_trailing_comma_in_list_call' => true,\n    'no_trailing_comma_in_singleline_array' => true,\n    'no_trailing_whitespace' => true,\n    'no_trailing_whitespace_in_comment' => true,\n    'no_unneeded_control_parentheses' => true,\n    'no_unreachable_default_argument_value' => true,\n    'no_useless_return' => true,\n    'no_whitespace_before_comma_in_array' => true,\n    'no_whitespace_in_blank_line' => true,\n    'normalize_index_brace' => true,\n    'not_operator_with_successor_space' => true,\n    'object_operator_without_whitespace' => true,\n    'ordered_imports' => ['sortAlgorithm' => 'alpha'],\n    'phpdoc_indent' => true,\n    'phpdoc_inline_tag' => true,\n    'phpdoc_no_access' => true,\n    'phpdoc_no_package' => true,\n    'phpdoc_no_useless_inheritdoc' => true,\n    'phpdoc_scalar' => true,\n    'phpdoc_single_line_var_spacing' => true,\n    'phpdoc_summary' => true,\n    'phpdoc_to_comment' => true,\n    'phpdoc_trim' => true,\n    'phpdoc_types' => true,\n    'phpdoc_var_without_name' => true,\n    'psr4' => true,\n    'self_accessor' => true,\n    'short_scalar_cast' => true,\n    'simplified_null_return' => false, // disabled by Shift\n    'single_blank_line_at_eof' => true,\n    'single_blank_line_before_namespace' => true,\n    'single_class_element_per_statement' => true,\n    'single_import_per_statement' => true,\n    'single_line_after_imports' => true,\n    'single_line_comment_style' => [\n        'comment_types' => ['hash']\n    ],\n    'single_quote' => true,\n    'space_after_semicolon' => true,\n    'standardize_not_equals' => true,\n    'switch_case_semicolon_to_colon' => true,\n    'switch_case_space' => true,\n    'ternary_operator_spaces' => true,\n    'trailing_comma_in_multiline_array' => true,\n    'trim_array_spaces' => true,\n    'unary_operator_spaces' => true,\n    'visibility_required' => [\n        'elements' => ['method', 'property']\n    ],\n    'whitespace_after_comma_in_array' => true,\n];\n\n$project_path = getcwd();\n$finder = Finder::create()\n    ->in([\n        __DIR__ . '/src',\n        __DIR__ . '/routes',\n        __DIR__ . '/tests',\n    ])\n    ->name('*.php')\n    ->notName('*.blade.php')\n    ->ignoreDotFiles(true)\n    ->ignoreVCS(true);\n\nreturn Config::create()\n    ->setFinder($finder)\n    ->setRules($rules)\n    ->setRiskyAllowed(true)\n    ->setUsingCache(true);\n"
  },
  {
    "path": ".prettierrc",
    "content": "{\n  \"arrowParens\": \"avoid\",\n  \"tabWidth\": 2,\n  \"printWidth\": 100,\n  \"vueIndentScriptAndStyle\": false,\n  \"quoteProps\": \"consistent\",\n  \"semi\": false,\n  \"singleQuote\": true,\n  \"trailingComma\": \"all\"\n}\n"
  },
  {
    "path": "composer.json",
    "content": "{\n  \"name\": \"larsklopstra/nebula\",\n  \"description\": \"Nebula, an open-source and easy to use admin panel for Laravel.\",\n  \"keywords\": [\n    \"larsklopstra\",\n    \"nebula\"\n  ],\n  \"homepage\": \"https://github.com/larsklopstra/nebula\",\n  \"license\": \"MIT\",\n  \"type\": \"library\",\n  \"authors\": [\n    {\n      \"name\": \"Lars Klopstra\",\n      \"email\": \"larsklopstra@gmail.com\",\n      \"role\": \"Developer\"\n    }\n  ],\n  \"require\": {\n    \"php\": \"^7.4\",\n    \"blade-ui-kit/blade-heroicons\": \"^0.2.2\",\n    \"illuminate/console\": \"^8.0\",\n    \"illuminate/database\": \"^8.0\",\n    \"illuminate/http\": \"^8.0\",\n    \"illuminate/support\": \"^8.0\",\n    \"illuminate/view\": \"^8.0\"\n  },\n  \"require-dev\": {\n    \"friendsofphp/php-cs-fixer\": \"^2.16\",\n    \"orchestra/testbench\": \"^6.0\",\n    \"phpunit/phpunit\": \"^8.0\"\n  },\n  \"autoload\": {\n    \"psr-4\": {\n      \"Larsklopstra\\\\Nebula\\\\\": \"src\"\n    }\n  },\n  \"autoload-dev\": {\n    \"psr-4\": {\n      \"Larsklopstra\\\\Nebula\\\\Tests\\\\\": \"tests\"\n    }\n  },\n  \"scripts\": {\n    \"test\": \"vendor/bin/phpunit\",\n    \"test-coverage\": \"vendor/bin/phpunit --coverage-html coverage\"\n  },\n  \"config\": {\n    \"sort-packages\": true\n  },\n  \"extra\": {\n    \"laravel\": {\n      \"providers\": [\n        \"Larsklopstra\\\\Nebula\\\\NebulaServiceProvider\"\n      ]\n    }\n  }\n}\n"
  },
  {
    "path": "config/nebula.php",
    "content": "<?php\n\nuse Larsklopstra\\Nebula\\Http\\Middleware\\NebulaIPAuthStrategy;\n\nreturn [\n\n    'name' => 'Nebula',\n\n    'prefix' => '/nebula',\n\n    'domain' => null,\n\n    'auth_strategy' => NebulaIPAuthStrategy::class,\n\n    'allowed_ips' => [\n        '127.0.0.1',\n    ],\n\n    'allowed_emails' => [\n        // 'admin@example.com',\n    ],\n\n    'resources' => [\n        // new UserResource,\n    ],\n\n    'dashboards' => [\n        // new UserDashboard,\n    ],\n\n    'pages' => [\n        // new CustomPage,\n    ],\n\n];\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"nebula\",\n  \"description\": \"Nebula, a Laravel dashboard\",\n  \"scripts\": {\n    \"dev\": \"npm run development\",\n    \"development\": \"cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js\",\n    \"watch\": \"npm run development -- --watch\",\n    \"watch-poll\": \"npm run watch -- --watch-poll\",\n    \"hot\": \"cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js\",\n    \"prod\": \"npm run production\",\n    \"production\": \"cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js\"\n  },\n  \"author\": \"Lars Klopstra\",\n  \"license\": \"MIT\",\n  \"dependencies\": {\n    \"@tailwindcss/custom-forms\": \"^0.2.1\",\n    \"cross-env\": \"^7.0.2\",\n    \"laravel-mix\": \"^5.0.5\",\n    \"prettier\": \"^2.1.1\",\n    \"tailwindcss\": \"^1.8.2\"\n  }\n}\n"
  },
  {
    "path": "phpunit.xml.dist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<phpunit bootstrap=\"vendor/autoload.php\"\n         backupGlobals=\"false\"\n         backupStaticAttributes=\"false\"\n         colors=\"true\"\n         verbose=\"true\"\n         convertErrorsToExceptions=\"true\"\n         convertNoticesToExceptions=\"true\"\n         convertWarningsToExceptions=\"true\"\n         processIsolation=\"false\"\n         stopOnFailure=\"false\">\n    <testsuites>\n        <testsuite name=\"Test Suite\">\n            <directory>tests</directory>\n        </testsuite>\n    </testsuites>\n    <filter>\n        <whitelist>\n            <directory suffix=\".php\">src/</directory>\n        </whitelist>\n    </filter>\n    <logging>\n        <log type=\"tap\" target=\"build/report.tap\"/>\n        <log type=\"junit\" target=\"build/report.junit.xml\"/>\n        <log type=\"coverage-html\" target=\"build/coverage\" charset=\"UTF-8\" yui=\"true\" highlight=\"true\"/>\n        <log type=\"coverage-text\" target=\"build/coverage.txt\"/>\n        <log type=\"coverage-clover\" target=\"build/logs/clover.xml\"/>\n    </logging>\n</phpunit>\n"
  },
  {
    "path": "public/css/app.css",
    "content": "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}details{display:block}summary{display:list-item}[hidden],template{display:none}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset,ol,ul{margin:0;padding:0}ol,ul{list-style:none}html{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #d2d6dc}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:DM mono,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}.form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#e2e8f0;border-width:1px;border-radius:.25rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.form-input::-moz-placeholder{color:#a0aec0;opacity:1}.form-input:-ms-input-placeholder{color:#a0aec0;opacity:1}.form-input::placeholder{color:#a0aec0;opacity:1}.form-input:focus{outline:none;box-shadow:0 0 0 3px rgba(66,153,225,.5);border-color:#63b3ed}.form-textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#e2e8f0;border-width:1px;border-radius:.25rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}.form-textarea::-moz-placeholder{color:#a0aec0;opacity:1}.form-textarea:-ms-input-placeholder{color:#a0aec0;opacity:1}.form-textarea::placeholder{color:#a0aec0;opacity:1}.form-textarea:focus{outline:none;box-shadow:0 0 0 3px rgba(66,153,225,.5);border-color:#63b3ed}.form-select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0aec0'%3E%3Cpath d='M15.3 9.3a1 1 0 011.4 1.4l-4 4a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4l3.3 3.29 3.3-3.3z'/%3E%3C/svg%3E\");-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;background-repeat:no-repeat;background-color:#fff;border-color:#e2e8f0;border-width:1px;border-radius:.25rem;padding:.5rem 2.5rem .5rem .75rem;font-size:1rem;line-height:1.5;background-position:right .5rem center;background-size:1.5em 1.5em}.form-select::-ms-expand{color:#a0aec0;border:none}@media not print{.form-select::-ms-expand{display:none}}@media print and (-ms-high-contrast:active),print and (-ms-high-contrast:none){.form-select{padding-right:.75rem}}.form-select:focus{outline:none;box-shadow:0 0 0 3px rgba(66,153,225,.5);border-color:#63b3ed}.form-checkbox:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.707 7.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4a1 1 0 00-1.414-1.414L7 8.586 5.707 7.293z'/%3E%3C/svg%3E\");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{.form-checkbox::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}.form-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-shrink:0;height:1em;width:1em;color:#4299e1;background-color:#fff;border-color:#e2e8f0;border-width:1px;border-radius:.25rem}.form-checkbox:focus{outline:none;box-shadow:0 0 0 3px rgba(66,153,225,.5);border-color:#63b3ed}.button{border-radius:.375rem;display:inline-flex;align-items:center;justify-content:center;font-weight:500;height:2.25rem;font-size:.875rem;line-height:1.25rem}.button:focus{outline:0}.button{padding-left:.75rem;padding-right:.75rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.button-primary{--bg-opacity:1;background-color:#1c64f2;background-color:rgba(28,100,242,var(--bg-opacity))}.button-primary:hover{--bg-opacity:1;background-color:#3f83f8;background-color:rgba(63,131,248,var(--bg-opacity))}.button-primary:focus{--bg-opacity:1;background-color:#1a56db;background-color:rgba(26,86,219,var(--bg-opacity))}.button-primary{box-shadow:0 1px 1px 0 rgba(0,0,0,.12),0 2px 4px 0 rgba(0,0,0,.04),0 2px 8px 0 rgba(0,0,0,.02);--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity))}.button-secondary{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.button-secondary:focus{--bg-opacity:1;background-color:#f9fafb;background-color:rgba(249,250,251,var(--bg-opacity))}.button-secondary{--border-opacity:1;border-color:#d2d6dc;border-color:rgba(210,214,220,var(--border-opacity))}.button-secondary:hover{--border-opacity:1;border-color:#e5e7eb;border-color:rgba(229,231,235,var(--border-opacity))}.button-secondary{border-width:1px;box-shadow:0 1px 1px 0 rgba(0,0,0,.08),0 2px 3px 0 rgba(0,0,0,.02),0 3px 6px 0 rgba(0,0,0,.01);--text-opacity:1;color:#252f3f;color:rgba(37,47,63,var(--text-opacity))}.button-secondary:hover{--text-opacity:1;color:#4b5563;color:rgba(75,85,99,var(--text-opacity))}.icon-button:focus{outline:0}.icon-button{--text-opacity:1;color:#9fa6b2;color:rgba(159,166,178,var(--text-opacity))}.icon-button:hover{--text-opacity:1;color:#d2d6dc;color:rgba(210,214,220,var(--text-opacity))}.icon-button:focus{--text-opacity:1;color:#6b7280;color:rgba(107,114,128,var(--text-opacity))}.icon-button{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.space-y-1>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(0.25rem*(1 - var(--space-y-reverse)));margin-bottom:calc(0.25rem*var(--space-y-reverse))}.space-x-1>:not(template)~:not(template){--space-x-reverse:0;margin-right:calc(0.25rem*var(--space-x-reverse));margin-left:calc(0.25rem*(1 - var(--space-x-reverse)))}.space-y-2>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--space-y-reverse)));margin-bottom:calc(0.5rem*var(--space-y-reverse))}.space-y-4>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(1rem*(1 - var(--space-y-reverse)));margin-bottom:calc(1rem*var(--space-y-reverse))}.space-x-4>:not(template)~:not(template){--space-x-reverse:0;margin-right:calc(1rem*var(--space-x-reverse));margin-left:calc(1rem*(1 - var(--space-x-reverse)))}.space-x-6>:not(template)~:not(template){--space-x-reverse:0;margin-right:calc(1.5rem*var(--space-x-reverse));margin-left:calc(1.5rem*(1 - var(--space-x-reverse)))}.space-y-8>:not(template)~:not(template){--space-y-reverse:0;margin-top:calc(2rem*(1 - var(--space-y-reverse)));margin-bottom:calc(2rem*var(--space-y-reverse))}.space-x-px>:not(template)~:not(template){--space-x-reverse:0;margin-right:calc(1px*var(--space-x-reverse));margin-left:calc(1px*(1 - var(--space-x-reverse)))}.divide-y>:not(template)~:not(template){--divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--divide-y-reverse)));border-bottom-width:calc(1px*var(--divide-y-reverse))}.divide-x>:not(template)~:not(template){--divide-x-reverse:0;border-right-width:calc(1px*var(--divide-x-reverse));border-left-width:calc(1px*(1 - var(--divide-x-reverse)))}.divide-gray-200>:not(template)~:not(template){--divide-opacity:1;border-color:#e5e7eb;border-color:rgba(229,231,235,var(--divide-opacity))}.bg-current{background-color:currentColor}.bg-white{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-gray-50{--bg-opacity:1;background-color:#f9fafb;background-color:rgba(249,250,251,var(--bg-opacity))}.bg-gray-100{--bg-opacity:1;background-color:#f4f5f7;background-color:rgba(244,245,247,var(--bg-opacity))}.bg-gray-200{--bg-opacity:1;background-color:#e5e7eb;background-color:rgba(229,231,235,var(--bg-opacity))}.bg-gray-800{--bg-opacity:1;background-color:#252f3f;background-color:rgba(37,47,63,var(--bg-opacity))}.bg-gray-900{--bg-opacity:1;background-color:#161e2e;background-color:rgba(22,30,46,var(--bg-opacity))}.bg-primary-50{--bg-opacity:1;background-color:#ebf5ff;background-color:rgba(235,245,255,var(--bg-opacity))}.bg-success-100{--bg-opacity:1;background-color:#def7ec;background-color:rgba(222,247,236,var(--bg-opacity))}.bg-danger-100{--bg-opacity:1;background-color:#fde8e8;background-color:rgba(253,232,232,var(--bg-opacity))}.focus\\:bg-gray-50:focus{--bg-opacity:1;background-color:#f9fafb;background-color:rgba(249,250,251,var(--bg-opacity))}.border-gray-200{--border-opacity:1;border-color:#e5e7eb;border-color:rgba(229,231,235,var(--border-opacity))}.border-gray-300{--border-opacity:1;border-color:#d2d6dc;border-color:rgba(210,214,220,var(--border-opacity))}.border-gray-700{--border-opacity:1;border-color:#374151;border-color:rgba(55,65,81,var(--border-opacity))}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.font-sans{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-mono{font-family:DM mono,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-display{font-family:DM Sans,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-medium{font-weight:500}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-10{height:2.5rem}.h-16{height:4rem}.h-screen{height:100vh}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem}.text-lg,.text-xl{line-height:1.75rem}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.m-3{margin:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mx-auto{margin-left:auto;margin-right:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.mb-2{margin-bottom:.5rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.-mt-5{margin-top:-1.25rem}.max-w-xs{max-width:20rem}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}.max-w-6xl{max-width:72rem}.min-h-screen{min-height:100vh}.focus\\:outline-none:focus{outline:0}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.placeholder-gray-500::-moz-placeholder{--placeholder-opacity:1;color:#6b7280;color:rgba(107,114,128,var(--placeholder-opacity))}.placeholder-gray-500:-ms-input-placeholder{--placeholder-opacity:1;color:#6b7280;color:rgba(107,114,128,var(--placeholder-opacity))}.placeholder-gray-500::placeholder{--placeholder-opacity:1;color:#6b7280;color:rgba(107,114,128,var(--placeholder-opacity))}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.sticky{position:-webkit-sticky;position:sticky}.inset-y-0{top:0;bottom:0}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.shadow-sm{box-shadow:0 1px 1px 0 rgba(0,0,0,.08),0 2px 3px 0 rgba(0,0,0,.02),0 3px 6px 0 rgba(0,0,0,.01)}.shadow{box-shadow:0 1px 1px 0 rgba(0,0,0,.12),0 2px 4px 0 rgba(0,0,0,.04),0 2px 8px 0 rgba(0,0,0,.02)}.shadow-xl{box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)}.table-auto{table-layout:auto}.text-left{text-align:left}.text-center{text-align:center}.text-white{--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity))}.text-gray-300{--text-opacity:1;color:#d2d6dc;color:rgba(210,214,220,var(--text-opacity))}.text-gray-400{--text-opacity:1;color:#9fa6b2;color:rgba(159,166,178,var(--text-opacity))}.text-gray-500{--text-opacity:1;color:#6b7280;color:rgba(107,114,128,var(--text-opacity))}.text-gray-600{--text-opacity:1;color:#4b5563;color:rgba(75,85,99,var(--text-opacity))}.text-gray-700{--text-opacity:1;color:#374151;color:rgba(55,65,81,var(--text-opacity))}.text-gray-800{--text-opacity:1;color:#252f3f;color:rgba(37,47,63,var(--text-opacity))}.text-primary-600{--text-opacity:1;color:#1c64f2;color:rgba(28,100,242,var(--text-opacity))}.text-primary-700{--text-opacity:1;color:#1a56db;color:rgba(26,86,219,var(--text-opacity))}.text-success-600{--text-opacity:1;color:#057a55;color:rgba(5,122,85,var(--text-opacity))}.text-success-900{--text-opacity:1;color:#014737;color:rgba(1,71,55,var(--text-opacity))}.text-danger-600{--text-opacity:1;color:#e02424;color:rgba(224,36,36,var(--text-opacity))}.text-danger-900{--text-opacity:1;color:#771d1d;color:rgba(119,29,29,var(--text-opacity))}.hover\\:text-gray-400:hover{--text-opacity:1;color:#9fa6b2;color:rgba(159,166,178,var(--text-opacity))}.hover\\:text-primary-500:hover{--text-opacity:1;color:#3f83f8;color:rgba(63,131,248,var(--text-opacity))}.focus\\:text-primary-700:focus{--text-opacity:1;color:#1a56db;color:rgba(26,86,219,var(--text-opacity))}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-64{width:16rem}.w-full{width:100%}.z-10{z-index:10}.z-50{z-index:50}.gap-2{grid-gap:.5rem;gap:.5rem}.gap-4{grid-gap:1rem;gap:1rem}.gap-6{grid-gap:1.5rem;gap:1.5rem}.gap-px{grid-gap:1px;gap:1px}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-4{grid-column:span 4/span 4}.col-span-5{grid-column:span 5/span 5}.col-span-6{grid-column:span 6/span 6}.col-span-7{grid-column:span 7/span 7}.col-span-8{grid-column:span 8/span 8}.col-span-9{grid-column:span 9/span 9}.col-span-10{grid-column:span 10/span 10}.col-span-11{grid-column:span 11/span 11}.col-span-12{grid-column:span 12/span 12}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150{transition-duration:.15s}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){.sm\\:flex{display:flex}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:mt-0{margin-top:0}.sm\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:768px){.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:col-span-2{grid-column:span 2/span 2}}@media (min-width:1024px){.lg\\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:flex-row{flex-direction:row}.lg\\:h-16{height:4rem}}"
  },
  {
    "path": "public/mix-manifest.json",
    "content": "{\n    \"/css/app.css\": \"/css/app.css?id=e4cc3cee8f0618af5d92\"\n}\n"
  },
  {
    "path": "resources/css/app.css",
    "content": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer components {\n  .button {\n    @apply inline-flex items-center justify-center px-3 text-sm font-medium transition duration-150 ease-in-out rounded-md h-9 focus:outline-none;\n  }\n\n  .button-primary {\n    @apply text-white shadow bg-primary-600 hover:bg-primary-500 focus:bg-primary-700;\n  }\n\n  .button-secondary {\n    @apply text-gray-800 bg-white border border-gray-300 shadow-sm hover:text-gray-600 hover:border-gray-200 focus:bg-gray-50;\n  }\n\n  .icon-button {\n    @apply text-gray-400 transition duration-150 ease-in-out focus:outline-none hover:text-gray-300 focus:text-gray-500;\n  }\n}\n"
  },
  {
    "path": "resources/lang/de.json",
    "content": "{\n  \"Resources\": \"Resourcen\",\n  \":Resources overview\": \":Resourcen Übersicht\",\n  \":Resource details\": \":Resource Details\",\n  \"Create :resource\": \":Resource anlegen\",\n  \"Edit :resource\": \":Resource bearbeiten\",\n  \"Update :resource\": \":Resource speichern\",\n  \"Delete :resource\": \":Resource löschen\",\n  \"Back to :resources\": \"Zurück zu :resources\",\n\n  \":Resource created\": \":Resource angelegt\",\n  \":Resource updated\": \":Resource gespeichert\",\n  \":Resource deleted\": \":Resource gelöscht\",\n\n  \"Expand :field\": \":Field erweitern\",\n  \"Collapse :field\": \":Field einklappen\",\n\n  \"Select filter\": \"Filter auswählen\",\n  \"Apply filters\": \"Filter anwenden\",\n  \"Remove filters\": \"Filter zurücksetzen\",\n  \"Search anything...\": \"Suchen...\",\n  \"Are you sure?\": \"Bist du sicher?\",\n  \"Last month\": \"Letzter Monat\",\n\n  \"No :resources found\": \"Keine :resources gefunden\",\n  \":Resources you've created will show up here.\": \":Resources die du angelegt hast werden hier angezeigt.\",\n\n  \":count result | :count results\": \":count Ergebnis | :count Ergebnisse\"\n}\n"
  },
  {
    "path": "resources/lang/nl.json",
    "content": "{\n  \"Resources\": \"Bronnen\",\n  \":Resources overview\": \":Resources overzicht\",\n  \":Resource details\": \":Resource details\",\n  \"Create :resource\": \":Resource aanmaken\",\n  \"Edit :resource\": \":Resource bewerken\",\n  \"Update :resource\": \":Resource bijwerken\",\n  \"Delete :resource\": \":Resource verwijderen\",\n  \"Back to :resources\": \"Terug naar :resources\",\n\n  \":Resource created\": \":Resource aangemaakt\",\n  \":Resource updated\": \":Resource bijgewerkt\",\n  \":Resource deleted\": \":Resource verwijderd\",\n\n  \"Expand :field\": \":Field uitklappen\",\n  \"Collapse :field\": \":Field inklappen\",\n\n  \"Select filter\": \"Selecteer filter\",\n  \"Apply filters\": \"Filters toepassen\",\n  \"Remove filters\": \"Filters verwijderen\",\n  \"Search anything...\": \"Zoeken in...\",\n  \"Are you sure?\": \"Weetje het zeker?\",\n  \"Last month\": \"Afgelopen maand\",\n\n  \"No :resources found\": \"Geen :resources gevonden\",\n  \":Resources you've created will show up here.\": \":Resources die jij hebt aangemaakt worden hier getoond.\",\n\n  \":count result | :count results\": \":count resultaat | :count resultaten\"\n}\n"
  },
  {
    "path": "resources/views/components/card.blade.php",
    "content": "@props(['title' => false])\n\n<div class=\"overflow-hidden bg-white divide-y divide-gray-200 rounded-lg shadow\">\n\n    @if ($title)\n        <header class=\"px-6 py-4\">\n\n            <h2 class=\"text-lg font-medium font-display\">\n                {{ $title }}\n            </h2>\n\n        </header>\n    @endif\n\n    {{ $slot }}\n</div>\n"
  },
  {
    "path": "resources/views/components/container.blade.php",
    "content": "<div class=\"w-full max-w-6xl px-4 mx-auto sm:px-8\">\n    {{ $slot }}\n</div>\n"
  },
  {
    "path": "resources/views/components/error.blade.php",
    "content": "@props(['for'])\n\n@error($for->getName())\n<p class=\"text-sm font-medium text-danger-600\">{{ $message }}</p>\n@enderror\n"
  },
  {
    "path": "resources/views/components/fields/details/boolean.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    @if (Arr::get($item, $field->getName()) ?? $field->getValue())\n        <span class=\"inline-block px-3 py-1 font-mono text-sm font-medium rounded-full bg-success-100 text-success-600\">\n            {{ $field->getTrue() }}\n        </span>\n    @else\n        <span class=\"inline-block px-3 py-1 font-mono text-sm font-medium rounded-full bg-danger-100 text-danger-600\">\n            {{ $field->getFalse() }}\n        </span>\n    @endif\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/details/color.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <div class=\"w-8 h-8 bg-current rounded\"\n        style=\"color: {{ Arr::get($item, $field->getName()) ?? $field->getValue() }}\"></div>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/details/date.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <p class=\"text-sm\">\n        {{ $field->applyFormat(Arr::get($item, $field->getName()) ?? $field->getValue()) }}\n    </p>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/details/input.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <p class=\"text-sm\">\n        {{ Arr::get($item, $field->getName()) ?? $field->getValue() }}\n    </p>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/details/select.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <p class=\"text-sm\">\n        {{ array_search(Arr::get($item, $field->getName()) ?? $field->getValue(), $field->getOptions()) }}\n    </p>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/details/textarea.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <div x-data=\"{ expanded: false }\">\n\n        <p x-show.transition.opacity=\"expanded\" class=\"mb-2 text-sm\">\n            {{ Arr::get($item, $field->getName()) ?? $field->getValue() }}\n        </p>\n\n        <button x-on:click=\"expanded = !expanded\"\n            class=\"text-sm font-medium duration-150 ease-in-out text-primary-600 focus:outline-none focus:text-primary-700 hover:text-primary-500\">\n            <span x-show=\"!expanded\">\n                {{ __('Expand :field', ['field' => $field->getlabel()]) }}\n            </span>\n            <span x-show=\"expanded\">\n                {{ __('Collapse :field', ['field' => $field->getlabel()]) }}\n            </span>\n        </button>\n\n    </div>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/forms/boolean.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <input type=\"hidden\" value=\"0\" name=\"{{ $field->getName() }}\">\n\n    <div class=\"space-y-2\">\n\n        <input class=\"block border border-gray-300 shadow-sm form-checkbox\" id=\"{{ $field->getName() }}\" value=\"1\"\n            {{ old($field->getName()) ?? (Arr::get($item, $field->getName()) ?? $field->getValue()) ? 'checked' : '' }}\n            name=\"{{ $field->getName() }}\" type=\"checkbox\">\n\n        <x-nebula::error :for=\"$field\" />\n\n    </div>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/forms/color.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <div class=\"space-y-2\">\n\n        <div class=\"flex flex-wrap gap-2\">\n            @foreach ($field->getColors() as $color)\n                <input\n                    {{ (old($field->getName()) ?? (Arr::get($item, $field->getName()) ?? $field->getValue())) === $color ? 'checked' : '' }}\n                    {{ $field->getRequired() ? 'required' : '' }} name=\"{{ $field->getName() }}\"\n                    id=\"{{ $field->getName() }}\" type=\"radio\" class=\"w-8 h-8 bg-current form-checkbox\"\n                    value=\"{{ $color }}\" style=\"color: {{ $color }}\" />\n            @endforeach\n        </div>\n\n        <x-nebula::error :for=\"$field\" />\n\n    </div>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/forms/date.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <div class=\"space-y-2\">\n\n        <input class=\"block w-full max-w-lg border border-gray-300 rounded-lg shadow-sm form-input sm:text-sm\"\n            id=\"{{ $field->getName() }}\"\n            value=\"{{ old($field->getName()) ?? (Arr::get($item, $field->getName()) ?? $field->getValue()) }}\"\n            {{ $field->getRequired() ? 'required' : '' }} name=\"{{ $field->getName() }}\" type=\"date\">\n\n        <x-nebula::error :for=\"$field\" />\n        <x-nebula::helper-text :for=\"$field\" />\n\n    </div>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/forms/input.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <div class=\"space-y-2\">\n\n        <input class=\"block w-full max-w-lg border border-gray-300 rounded-lg shadow-sm form-input sm:text-sm\"\n            placeholder=\"{{ $field->getPlaceholder() }}\" id=\"{{ $field->getName() }}\"\n            value=\"{{ old($field->getName()) ?? (Arr::get($item, $field->getName()) ?? $field->getValue()) }}\"\n            {{ $field->getRequired() ? 'required' : '' }} name=\"{{ $field->getName() }}\" type=\"{{ $field->getType() }}\">\n\n        <x-nebula::error :for=\"$field\" />\n        <x-nebula::helper-text :for=\"$field\" />\n\n    </div>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/forms/select.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <div class=\"space-y-2\">\n\n        <select class=\"block w-full max-w-lg border border-gray-300 rounded-lg shadow-sm form-select sm:text-sm\"\n            id=\"{{ $field->getName() }}\" {{ $field->getRequired() ? 'required' : '' }} name=\"{{ $field->getName() }}\">\n\n            <option value=\"\">Select an option</option>\n\n            @empty(!$field->getOptions())\n                @foreach ($field->getOptions() as $key => $value)\n                    <option\n                        {{ (old($field->getName()) ?? (Arr::get($item, $field->getName()) ?? $field->getValue())) == $value ? 'selected' : '' }}\n                        value=\"{{ $value }}\">\n                        {{ $key }}\n                    </option>\n                @endforeach\n            @endempty\n\n        </select>\n\n        <x-nebula::error :for=\"$field\" />\n        <x-nebula::helper-text :for=\"$field\" />\n\n    </div>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/forms/textarea.blade.php",
    "content": "@props(['field', 'item' => null])\n\n<x-nebula::form-row :field=\"$field\">\n\n    <div class=\"space-y-2\">\n\n        <textarea class=\"block w-full border border-gray-300 rounded-lg shadow-sm sm:text-sm form-textarea\"\n            placeholder=\"{{ $field->getPlaceholder() }}\" {{ $field->getRequired() ? 'required' : '' }}\n            id=\"{{ $field->getName() }}\"\n            name=\"{{ $field->getName() }}\">{{ old($field->getName()) ?? (Arr::get($item, $field->getName()) ?? $field->getValue()) }}</textarea>\n\n        <x-nebula::error :for=\"$field\" />\n        <x-nebula::helper-text :for=\"$field\" />\n\n    </div>\n\n</x-nebula::form-row>\n"
  },
  {
    "path": "resources/views/components/fields/tables/boolean.blade.php",
    "content": "@props(['field', 'item' => null])\n\n@if (Arr::get($item, $field->getName()) ?? $field->getValue())\n    <span class=\"inline-block px-3 py-1 font-mono text-sm font-medium rounded-full bg-success-100 text-success-600\">\n        {{ $field->getTrue() }}\n    </span>\n@else\n    <span class=\"inline-block px-3 py-1 font-mono text-sm font-medium rounded-full bg-danger-100 text-danger-600\">\n        {{ $field->getFalse() }}\n    </span>\n@endif\n"
  },
  {
    "path": "resources/views/components/fields/tables/color.blade.php",
    "content": "@props(['field', 'item'])\n\n<div class=\"w-4 h-4 bg-current rounded\" style=\"color: {{ Arr::get($item, $field->getName()) ?? $field->getValue() }}\">\n</div>\n"
  },
  {
    "path": "resources/views/components/fields/tables/date.blade.php",
    "content": "@props(['field', 'item'])\n\n{{ $field->applyFormat(Arr::get($item, $field->getName()) ?? $field->getValue()) }}\n"
  },
  {
    "path": "resources/views/components/fields/tables/input.blade.php",
    "content": "@props(['field', 'item'])\n\n{{ Arr::get($item, $field->getName()) }}\n"
  },
  {
    "path": "resources/views/components/fields/tables/select.blade.php",
    "content": "@props(['field', 'item'])\n\n{{ array_search(Arr::get($item, $field->getName()) ?? $field->getValue(), $field->getOptions()) }}\n"
  },
  {
    "path": "resources/views/components/fields/tables/textarea.blade.php",
    "content": "@props(['field', 'item'])\n\n{{ Str::limit(Arr::get($item, $field->getName()), 24, '...') }}\n"
  },
  {
    "path": "resources/views/components/form-actions.blade.php",
    "content": "<footer class=\"flex items-center justify-end px-6 py-4 space-x-4\">\n    {{ $slot }}\n</footer>\n"
  },
  {
    "path": "resources/views/components/form-row.blade.php",
    "content": "<div class=\"grid md:grid-cols-3\">\n\n    <div class=\"px-6 py-3\">\n\n        <x-nebula::label :for=\"$field->getName()\">\n            {{ $field->getLabel() }}\n        </x-nebula::label>\n\n    </div>\n\n    <div class=\"px-6 py-3 -mt-5 sm:mt-0 md:col-span-2\">\n        {{ $slot }}\n    </div>\n\n</div>\n"
  },
  {
    "path": "resources/views/components/form.blade.php",
    "content": "@props(['method' => 'POST', 'action' => ''])\n\n<form action=\"{{ $action }}\" method=\"{{ $method !== 'GET' ? 'POST' : 'GET' }}\">\n    {{ $slot }}\n    @csrf\n    @method($method)\n</form>\n"
  },
  {
    "path": "resources/views/components/helper-text.blade.php",
    "content": "@props(['for'])\n\n@if($for->getHelperText())\n<p class=\"text-sm font-medium text-gray-600\">{{ $for->getHelperText() }}</p>\n@enderror\n"
  },
  {
    "path": "resources/views/components/label.blade.php",
    "content": "@props(['for' => null])\n\n<label class=\"text-sm font-medium text-gray-700\" for=\"{{ $for }}\">\n    {{ $slot }}\n</label>\n"
  },
  {
    "path": "resources/views/components/layouts/app.blade.php",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>{{ config('nebula.name') }}</title>\n    <link href=\"https://fonts.googleapis.com/css2?family=DM+Sans:wght@500&family=Inter:wght@400;500&display=swap\"\n        rel=\"stylesheet\">\n    <link href=\"{{ mix('css/app.css', 'vendor/nebula') }}\" rel=\"stylesheet\">\n    @stack('styles')\n    <script src=\"https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.6.0/dist/alpine.min.js\" defer></script>\n    @stack('scripts')\n</head>\n\n<body class=\"font-sans antialiased text-gray-800 bg-gray-900\">\n\n    {{ $slot }}\n\n    @if ($message = session('toast'))\n        <div class=\"fixed bottom-0 right-0 z-50 w-full max-w-xs m-3 pointer-events-none\">\n\n            <div x-show.transition.duration.350ms=\"isOpen\" x-data=\"{ isOpen: false }\"\n                x-init=\"setTimeout(() => isOpen = true, 500)\"\n                class=\"flex items-center justify-between p-4 space-x-4 bg-white rounded-lg shadow-xl pointer-events-auto\">\n\n                <p class=\"text-base font-medium font-display\">\n                    {{ $message }}\n                </p>\n\n                <button x-on:click=\"isOpen = false\" class=\"icon-button\">\n                    <x-heroicon-o-x class=\"w-6 h-6\"></x-heroicon-o-x>\n                </button>\n\n            </div>\n\n        </div>\n    @endif\n\n</body>\n\n</html>\n"
  },
  {
    "path": "resources/views/components/layouts/shell.blade.php",
    "content": "@props(['title' => config('nebula.name'), 'actions' => null, 'contextMenu' => null, 'back' => false])\n\n<x-nebula::layouts.app>\n\n    <div class=\"flex flex-col min-h-screen lg:flex-row\">\n\n        <aside x-data=\"{ menuOpen: false }\" class=\"flex flex-col text-white bg-gray-900 lg:hidden\">\n\n            <header class=\"flex items-center justify-between h-16 px-4\">\n                <div>\n                    <p class=\"w-full text-base font-medium truncate font-display\">{{ config('nebula.name') }}</p>\n                </div>\n\n                <button x-on:click=\"menuOpen = !menuOpen\"\n                    class=\"flex items-center justify-center w-10 h-10 bg-gray-800 rounded-lg\">\n                    <x-heroicon-s-menu class=\"w-6 h-6 text-gray-400\" />\n                </button>\n            </header>\n\n            <nav x-show.transition.opacity=\"menuOpen\" class=\"border-t border-gray-700\">\n                @if ($dashboards = \\Larsklopstra\\Nebula\\Nebula::availableDashboards())\n                    <ul class=\"px-2 my-4 space-y-1\">\n\n                        <li>\n                            <p class=\"flex items-center h-8 px-2 text-xs font-medium text-gray-300 uppercase\">\n                                {{ __('Dashboards') }}\n                            </p>\n                        </li>\n\n                        @foreach ($dashboards as $dashboard)\n                            <li>\n\n                                <a class=\"flex items-center h-10 px-2 text-sm font-medium text-gray-300 capitalize rounded-lg\"\n                                    href=\"{{ route('nebula.dashboards.index', $dashboard->name()) }}\">\n                                    {{ svg(\"heroicon-o-{$dashboard->icon()}\", ['class' => 'w-5 h-5 mr-2 text-gray-400']) }}\n                                    {{ $dashboard->pluralName() }}\n                                </a>\n\n                            </li>\n                        @endforeach\n\n                    </ul>\n                @endif\n\n                @if($resources = \\Larsklopstra\\Nebula\\Nebula::availableResources())\n                    <ul class=\"px-2 my-4 space-y-1\">\n\n                        <li>\n                            <p class=\"flex items-center h-8 px-2 text-xs font-medium text-gray-300 uppercase\">\n                                {{ __('Resources') }}\n                            </p>\n                        </li>\n\n                        @foreach ($resources as $resource)\n                            <li>\n                                <a class=\"flex items-center h-10 px-2 text-sm font-medium text-gray-300 capitalize rounded-lg\"\n                                    href=\"{{ route('nebula.resources.index', $resource->name()) }}\">\n                                    {{ svg(\"heroicon-o-{$resource->icon()}\", ['class' => 'w-5 h-5 mr-2 text-gray-400']) }}\n                                    {{ $resource->pluralName() }}\n                                </a>\n                            </li>\n                        @endforeach\n\n                    </ul>\n                @endif\n\n                @if($pages = \\Larsklopstra\\Nebula\\Nebula::availablePages())\n                    <ul class=\"px-2 my-4 space-y-1\">\n\n                        <li>\n                            <p class=\"flex items-center h-8 px-2 text-xs font-medium text-gray-300 uppercase\">\n                                {{ __('Pages') }}\n                            </p>\n                        </li>\n\n                        @foreach ($pages as $page)\n                            <li>\n                                <a class=\"flex items-center h-10 px-2 text-sm font-medium text-gray-300 capitalize rounded-lg\"\n                                    href=\"{{ route('nebula.pages.index', $page->name()) }}\">\n                                    {{ svg(\"heroicon-o-{$page->icon()}\", ['class' => 'w-5 h-5 mr-2 text-gray-400']) }}\n                                    {{ $page->name() }}\n                                </a>\n                            </li>\n                        @endforeach\n\n                    </ul>\n                @endif\n            </nav>\n        </aside>\n\n        <aside class=\"sticky inset-y-0 top-0 flex-col hidden w-64 h-screen text-white bg-gray-900 lg:flex\">\n\n            <header class=\"flex flex-col items-start justify-center h-16 px-4 border-b border-gray-700\">\n                <p class=\"w-full text-base font-medium truncate font-display\">{{ config('nebula.name') }}</p>\n            </header>\n\n            @if ($dashboards = \\Larsklopstra\\Nebula\\Nebula::availableDashboards())\n                <ul class=\"px-2 my-4 space-y-1\">\n\n                    <li>\n                        <p class=\"flex items-center h-8 px-2 text-xs font-medium text-gray-300 uppercase\">\n                            {{ __('Dashboards') }}\n                        </p>\n                    </li>\n\n                    @foreach ($dashboards as $dashboard)\n                        <li>\n\n                            <a class=\"flex items-center h-10 px-2 text-sm font-medium text-gray-300 capitalize rounded-lg\"\n                                href=\"{{ route('nebula.dashboards.index', $dashboard->name()) }}\">\n                                {{ svg(\"heroicon-o-{$dashboard->icon()}\", ['class' => 'w-5 h-5 mr-2 text-gray-400']) }}\n                                {{ $dashboard->pluralName() }}\n                            </a>\n\n                        </li>\n                    @endforeach\n\n                </ul>\n            @endif\n\n            @if($resources = \\Larsklopstra\\Nebula\\Nebula::availableResources())\n                <ul class=\"px-2 my-4 space-y-1\">\n\n                    <li>\n                        <p class=\"flex items-center h-8 px-2 text-xs font-medium text-gray-300 uppercase\">\n                            {{ __('Resources') }}\n                        </p>\n                    </li>\n\n                    @foreach (\\Larsklopstra\\Nebula\\Nebula::availableResources() as $resource)\n                        <li>\n                            <a class=\"flex items-center h-10 px-2 text-sm font-medium text-gray-300 capitalize rounded-lg\"\n                                href=\"{{ route('nebula.resources.index', $resource->name()) }}\">\n                                {{ svg(\"heroicon-o-{$resource->icon()}\", ['class' => 'w-5 h-5 mr-2 text-gray-400']) }}\n                                {{ $resource->pluralName() }}\n                            </a>\n                        </li>\n                    @endforeach\n\n                </ul>\n            @endif\n\n            @if ($pages = \\Larsklopstra\\Nebula\\Nebula::availablePages())\n                <ul class=\"px-2 my-4 space-y-1\">\n\n                    <li>\n                        <p class=\"flex items-center h-8 px-2 text-xs font-medium text-gray-300 uppercase\">\n                            {{ __('Pages') }}\n                        </p>\n                    </li>\n\n                    @foreach ($pages as $page)\n                        <li>\n\n                            <a class=\"flex items-center h-10 px-2 text-sm font-medium text-gray-300 capitalize rounded-lg\"\n                                href=\"{{ route('nebula.pages.index', $page->slug()) }}\">\n                                {{ svg(\"heroicon-o-{$page->icon()}\", ['class' => 'w-5 h-5 mr-2 text-gray-400']) }}\n                                {{ $page->name() }}\n                            </a>\n\n                        </li>\n                    @endforeach\n\n                </ul>\n            @endif\n\n        </aside>\n\n        <main class=\"z-10 flex-1 overflow-hidden bg-gray-100 shadow lg:rounded-l-lg\">\n\n            <header class=\"px-4 bg-white shadow sm:px-8\">\n\n                <div class=\"grid items-center justify-between gap-4 py-4 lg:h-16 sm:flex\">\n\n                    <div class=\"flex items-center space-x-4\">\n\n                        @if ($back)\n                            <a class=\"icon-button\" href=\"{{ $back }}\">\n                                <x-heroicon-o-arrow-left class=\"w-6 h-6\" />\n                            </a>\n                        @endif\n\n                        <h1 class=\"text-xl font-medium tracking-tight font-display\">\n                            {{ $title }}\n                        </h1>\n\n                    </div>\n\n                    @if ($actions)\n                        <nav class=\"flex items-center space-x-4\">\n                            {{ $actions }}\n                        </nav>\n                    @endif\n\n                </div>\n\n            </header>\n\n            @if ($contextMenu)\n\n                <div class=\"z-10 px-4 bg-white shadow sm:px-8\">\n\n                    <div class=\"border-t border-gray-200\">\n                        {{ $contextMenu }}\n                    </div>\n\n                </div>\n\n            @endif\n\n            <section class=\"py-8\">\n\n                <x-nebula::container>\n                    {{ $slot }}\n                </x-nebula::container>\n\n            </section>\n\n        </main>\n\n    </div>\n\n</x-nebula::layouts.app>\n"
  },
  {
    "path": "resources/views/components/metric-card.blade.php",
    "content": "@props(['colSpan' => 4])\n\n<div class=\"overflow-hidden p-4 bg-white rounded-lg shadow col-span-{{ $colSpan }}\">\n    {{ $slot }}\n</div>\n"
  },
  {
    "path": "resources/views/components/metrics/value.blade.php",
    "content": "@props(['metric'])\n\n<x-nebula::metric-card :col-span=\"$metric->colSpan()\">\n\n    <h3 class=\"text-sm\">\n        {{ $metric->label() }}\n    </h3>\n\n    <div class=\"flex items-end justify-between mt-2\">\n\n        <div class=\"flex flex-row items-center space-x-px\">\n            @if ($prefix = $metric->prefix())\n                <p class=\"text-base text-gray-600\">{{ $prefix }}</p>\n            @endif\n\n            <h4 class=\"text-3xl font-medium font-display\">\n                {{ round($metric->calculate()[0]) }}\n            </h4>\n\n            @if ($suffix = $metric->suffix())\n                <p class=\"text-base text-gray-600\">{{ $suffix }}</p>\n            @endif\n        </div>\n\n        @if ($metric->calculateDifference() > 0)\n            <div class=\"inline-flex flex-row items-center h-6 px-2 space-x-1 rounded-full bg-success-100\">\n\n                <x-heroicon-s-arrow-up class=\"w-4 h-4 text-success-600\" />\n\n                <span class=\"text-sm font-medium text-success-900\">\n                    {{ round($metric->calculateDifference(), 2) }}%\n                </span>\n\n            </div>\n        @else\n            <div class=\"inline-flex flex-row items-center h-6 px-2 space-x-1 rounded-full bg-danger-100\">\n\n                <x-heroicon-s-arrow-down class=\"w-4 h-4 text-danger-600\" />\n\n                <span class=\"text-sm font-medium text-danger-900\">\n                    {{ round($metric->calculateDifference(), 2) }}%\n                </span>\n\n            </div>\n        @endif\n    </div>\n\n</x-nebula::metric-card>\n"
  },
  {
    "path": "resources/views/components/pagination.blade.php",
    "content": "<div class=\"flex items-center justify-between\">\n\n    <p class=\"text-sm text-gray-600\">\n        {{ trans_choice(':count result | :count results', $paginator->total(), ['count' => $paginator->total()]) }}\n    </p>\n\n    @if ($paginator->hasPages())\n\n        <nav class=\"flex overflow-hidden bg-white border border-gray-200 divide-x divide-gray-200 rounded-lg shadow-sm\">\n\n            @if ($paginator->onFirstPage())\n                <span class=\"p-2 text-sm text-gray-300\">\n                    <x-heroicon-s-chevron-left class=\"w-5 h-5\" />\n                </span>\n            @else\n                <a class=\"p-2 text-sm text-gray-500 transition duration-150 ease-in-out hover:text-gray-400 focus:bg-gray-50\"\n                    href=\"{{ $paginator->previousPageUrl() }}\">\n                    <x-heroicon-s-chevron-left class=\"w-5 h-5\" />\n                </a>\n            @endif\n\n            @if (!$paginator->hasMorePages())\n                <span class=\"p-2 text-sm text-gray-300\">\n                    <x-heroicon-s-chevron-right class=\"w-5 h-5\" />\n                </span>\n            @else\n                <a class=\"p-2 text-sm text-gray-500 transition duration-150 ease-in-out hover:text-gray-400 focus:bg-gray-50\"\n                    href=\"{{ $paginator->nextPageUrl() }}\">\n                    <x-heroicon-s-chevron-right class=\"w-5 h-5\" />\n                </a>\n            @endif\n\n        </nav>\n\n    @endif\n</div>\n"
  },
  {
    "path": "resources/views/dashboards/default-metrics.blade.php",
    "content": "<div class=\"grid grid-cols-12 gap-6\">\n\n    @foreach ($dashboard->metrics() as $metric)\n        <x-dynamic-component :component=\"$metric->component()\" :metric=\"$metric\" />\n    @endforeach\n\n</div>\n"
  },
  {
    "path": "resources/views/dashboards/default.blade.php",
    "content": "<h2 class=\"text-base font-medium font-display\">\n    {{ $dashboard->label() }}\n</h2>\n\n{{ $dashboard->displayMetrics() }}\n"
  },
  {
    "path": "resources/views/dashboards/index.blade.php",
    "content": "<x-nebula::layouts.shell :title=\"__(':Dashboard dashboard', ['dashboard' => $dashboard->singularName()])\">\n\n    <div class=\"mb-8 space-y-4\">\n        {{ $dashboard->display() }}\n    </div>\n\n</x-nebula::layouts.shell>\n"
  },
  {
    "path": "resources/views/pages/index.blade.php",
    "content": "<x-nebula::layouts.shell :title=\"$page->name()\">\n\n    <div class=\"mb-8 space-y-4\">\n        {{ $page->display() }}\n    </div>\n\n</x-nebula::layouts.shell>\n"
  },
  {
    "path": "resources/views/resources/create.blade.php",
    "content": "<x-nebula::layouts.shell :title=\"__('Create :resource', ['resource' => $resource->singularName()])\"\n    :back=\"route('nebula.resources.index', $resource->name())\">\n\n    <x-nebula::form :action=\"route('nebula.resources.store', $resource->name())\">\n\n        <div class=\"-mx-4 sm:mx-0\">\n            <x-nebula::card>\n\n                <x-slot name=\"title\">\n                    {{ __('Create :resource', ['resource' => $resource->singularName()]) }}\n                </x-slot>\n\n                @foreach ($resource->createFields() as $field)\n                    <x-dynamic-component :component=\"$field->getFormComponent()\" :field=\"$field\" />\n                @endforeach\n\n                <x-nebula::form-actions>\n\n                    <a href=\"{{ route('nebula.resources.index', $resource->name()) }}\" type=\"button\"\n                        class=\"button button-secondary\">\n                        {{ __('Back to :resources', ['resources' => $resource->pluralName()]) }}\n                    </a>\n\n                    <button type=\"submit\" class=\"button button-primary\">\n                        {{ __('Create :resource', ['resource' => $resource->singularName()]) }}\n                    </button>\n\n                </x-nebula::form-actions>\n\n            </x-nebula::card>\n        </div>\n\n    </x-nebula::form>\n\n</x-nebula::layouts.shell>\n"
  },
  {
    "path": "resources/views/resources/edit.blade.php",
    "content": "<x-nebula::layouts.shell :title=\"__('Edit :resource', ['resource' => $resource->singularName()])\"\n    :back=\"route('nebula.resources.show', [$resource->name(), $item])\">\n\n    <x-nebula::form :action=\"route('nebula.resources.update', [$resource->name(), $item])\" method=\"PATCH\">\n\n        <div class=\"-mx-4 sm:mx-0\">\n            <x-nebula::card>\n\n                <x-slot name=\"title\">\n                    {{ __('Edit :resource', ['resource' => $resource->singularName()]) }}\n                </x-slot>\n\n                @foreach ($resource->editFields() as $field)\n                    <x-dynamic-component :item=\"$item\" :component=\"$field->getFormComponent()\" :field=\"$field\" />\n                @endforeach\n\n                <x-nebula::form-actions>\n\n                    <a href=\"{{ route('nebula.resources.index', $resource->name()) }}\" type=\"button\"\n                        class=\"button button-secondary\">\n                        {{ __('Back to :resources', ['resources' => $resource->pluralName()]) }}\n                    </a>\n\n                    <button type=\"submit\" class=\"button button-primary\">\n                        {{ __('Update :resource', ['resource' => $resource->singularName()]) }}\n                    </button>\n\n                </x-nebula::form-actions>\n\n            </x-nebula::card>\n        </div>\n\n    </x-nebula::form>\n\n</x-nebula::layouts.shell>\n"
  },
  {
    "path": "resources/views/resources/index.blade.php",
    "content": "<x-nebula::layouts.shell :title=\"__(':Resources overview', ['resources' => $resource->pluralName()])\">\n\n    <x-slot name=\"actions\">\n\n        <a href=\"{{ route('nebula.resources.create', $resource->name()) }}\" class=\"button button-primary\">\n            {{ __('Create :resource', ['resource' => $resource->singularName()]) }}\n        </a>\n\n    </x-slot>\n\n    <x-slot name=\"contextMenu\">\n\n        <form class=\"grid items-center gap-4 py-4 lg:flex\" method=\"GET\">\n\n            <input name=\"search\" value=\"{{ $activeSearch }}\" type=\"text\" placeholder=\"{{ __('Search anything...') }}\"\n                class=\"w-full max-w-md text-sm placeholder-gray-500 border-gray-300 rounded-lg shadow-sm form-input\">\n\n            <select name=\"filter\" class=\"text-sm placeholder-gray-500 border-gray-300 rounded-lg shadow-sm form-select\">\n\n                <option value=\"\" selected>\n                    {{ __('Select filter') }}\n                </option>\n\n                @foreach ($resource->filters() as $filter)\n                    <option {{ $activeFilter && $activeFilter === $filter->name() ? 'selected' : '' }}\n                        value=\"{{ $filter->name() }}\">{{ $filter->label() }}</option>\n                @endforeach\n            </select>\n\n            <button type=\"submit\" class=\"button button-secondary\">\n                {{ __('Apply filters') }}\n            </button>\n\n            @if ($activeSearch || $activeFilter)\n                <a class=\"text-sm text-center text-gray-600\"\n                    href=\"{{ route('nebula.resources.index', $resource->name()) }}\">\n                    {{ __('Remove filters') }}\n                </a>\n            @endif\n\n        </form>\n\n    </x-slot>\n\n    @empty(! $metrics = $resource->metrics())\n        <div class=\"mb-8 space-y-4\">\n\n            <h2 class=\"text-base font-medium font-display\">\n                {{ __('Last month') }}\n            </h2>\n\n            <div class=\"grid grid-cols-12 gap-6\">\n\n                @foreach ($metrics as $metric)\n                    <x-dynamic-component :component=\"$metric->component()\" :metric=\"$metric\" />\n                @endforeach\n\n            </div>\n\n        </div>\n    @endempty\n\n    @empty($items->count())\n        <div class=\"flex flex-col items-center justify-center px-6 py-8 text-center\">\n\n            <x-heroicon-o-information-circle class=\"w-16 h-16 text-gray-400\" />\n\n            <h2 class=\"mt-2 text-base font-medium\">\n                {{ __('No :resources found', ['resources' => $resource->pluralName()]) }}\n            </h2>\n\n            <p class=\"max-w-md mt-1 text-sm text-gray-600\">\n                {{ __(':Resources you\\'ve created will show up here.', ['resources' => $resource->pluralName()]) }}\n            </p>\n\n            <footer class=\"mt-4 space-x-4\">\n\n                <a class=\"button button-primary\" href=\"{{ route('nebula.resources.create', $resource->name()) }}\">\n                    {{ __('Create :resource', ['resource' => $resource->singularName()]) }}\n                </a>\n\n            </footer>\n\n        </div>\n    @else\n        <div class=\"-mx-4 sm:mx-0\">\n            <x-nebula::card>\n\n                <div class=\"overflow-x-auto \">\n                    <table class=\"w-full text-left table-auto\">\n                        <thead>\n                            <tr>\n\n                                @foreach ($resource->indexFields() as $field)\n                                    <th\n                                        class=\"px-4 py-2 text-xs font-medium tracking-wider text-gray-500 uppercase bg-gray-50\">\n                                        {{ $field->getLabel() }}\n                                    </th>\n                                @endforeach\n\n                            </tr>\n                        </thead>\n                        <tbody>\n\n                            @foreach ($items as $item)\n                                <tr>\n\n                                    @foreach ($resource->indexFields() as $field)\n                                        <td class=\"p-4 text-sm border-t border-gray-200\">\n                                            <a href=\"{{ route('nebula.resources.show', [$resource->name(), $item]) }}\">\n                                                <x-dynamic-component :item=\"$item\" :component=\"$field->getTableComponent()\"\n                                                    :field=\"$field\" />\n                                            </a>\n                                        </td>\n                                    @endforeach\n\n                                </tr>\n                            @endforeach\n\n                        </tbody>\n                    </table>\n                </div>\n\n                <footer class=\"px-4 py-2\">\n                    {{ $items->withQueryString()->links('nebula::components.pagination') }}\n                </footer>\n\n            </x-nebula::card>\n        </div>\n    @endisset\n\n</x-nebula::layouts.shell>\n"
  },
  {
    "path": "resources/views/resources/show.blade.php",
    "content": "<x-nebula::layouts.shell :title=\"__(':Resource details', ['resource' => $resource->singularName()])\"\n    :back=\"route('nebula.resources.index', $resource->name())\">\n\n    <x-slot name=\"actions\">\n\n        <x-nebula::form :action=\"route('nebula.resources.destroy', [$resource->name(), $item])\" method=\"DELETE\">\n\n            <div x-data=\"{ confirmed: false }\">\n\n                <button x-on:click.away=\"confirmed = false\" x-bind:type=\"!confirmed ? 'button' : 'submit'\"\n                    x-on:click=\"confirmed = true\" class=\"button button-secondary\">\n                    <span x-show.transition.in=\"!confirmed\">\n                        {{ __('Delete :resource', ['resource' => $resource->singularName()]) }}\n                    </span>\n                    <span x-show.transition.in=\"confirmed\">\n                        {{ __('Are you sure?') }}\n                    </span>\n                </button>\n\n            </div>\n\n        </x-nebula::form>\n\n        <a href=\"{{ route('nebula.resources.edit', [$resource->name(), $item]) }}\" class=\"button button-secondary\">\n            {{ __('Edit :resource', ['resource' => $resource->singularName()]) }}\n        </a>\n\n    </x-slot>\n\n    <div class=\"-mx-4 sm:mx-0\">\n        <x-nebula::card>\n\n            <x-slot name=\"title\">\n                {{ __(':Resource details', ['resource' => $resource->pluralName()]) }}\n            </x-slot>\n\n            @foreach ($resource->fields() as $field)\n                <x-dynamic-component :item=\"$item\" :component=\"$field->getDetailsComponent()\" :field=\"$field\" />\n            @endforeach\n\n        </x-nebula::card>\n    </div>\n\n</x-nebula::layouts.shell>\n"
  },
  {
    "path": "resources/views/start.blade.php",
    "content": "<x-nebula::layouts.shell :title=\"__('Get started')\">\n\n    <div class=\"space-y-8\">\n\n        <header>\n\n            <h1 class=\"text-2xl font-medium font-display\">\n                {{ __('Get started') }}\n            </h1>\n\n            <p class=\"mt-1 text-gray-600\">\n                {{ __('Welcome to Nebula, let\\'s get that data working!') }}\n            </p>\n\n        </header>\n\n        <div class=\"grid grid-cols-2 gap-px overflow-hidden bg-gray-200 rounded-lg shadow\">\n\n            <article class=\"flex p-6 space-x-6 bg-white\">\n\n                <div>\n                    <div class=\"flex items-center justify-center w-10 h-10 rounded-lg bg-primary-50\">\n                        <x-heroicon-o-cube class=\"w-8 h-8 text-primary-700\" />\n                    </div>\n                </div>\n\n                <div>\n                    <h2 class=\"text-lg font-medium font-display\">\n                        {{ __('Resources') }}\n                    </h2>\n                    <p class=\"text-sm text-gray-600\">\n                        {{ __('Resources are a key part of Nebula, they easily allow you to scaffold CRUD interfaces through a CLI.') }}\n                    </p>\n                </div>\n\n            </article>\n\n            <article class=\"flex p-6 space-x-6 bg-white\">\n\n                <div>\n                    <div class=\"flex items-center justify-center w-10 h-10 rounded-lg bg-primary-50\">\n                        <x-heroicon-o-search class=\"w-8 h-8 text-primary-700\" />\n                    </div>\n                </div>\n\n                <div>\n                    <h2 class=\"text-lg font-medium font-display\">\n                        {{ __('Filters') }}\n                    </h2>\n                    <p class=\"text-sm text-gray-600\">\n                        {{ __('Sometimes you need to search for specific records in tons of data, filters will make your life easier.') }}\n                    </p>\n                </div>\n\n            </article>\n\n            <article class=\"flex p-6 space-x-6 bg-white\">\n\n                <div>\n                    <div class=\"flex items-center justify-center w-10 h-10 rounded-lg bg-primary-50\">\n                        <x-heroicon-o-trending-up class=\"w-8 h-8 text-primary-700\" />\n                    </div>\n                </div>\n\n                <div>\n                    <h2 class=\"text-lg font-medium font-display\">\n                        {{ __('Metrics') }}\n                    </h2>\n                    <p class=\"text-sm text-gray-600\">\n                        {{ __('Metrics are useful cards which display data of resources, they can be found in dashboards and resources.') }}\n                    </p>\n                </div>\n\n            </article>\n\n            <article class=\"flex p-6 space-x-6 bg-white\">\n\n                <div>\n                    <div class=\"flex items-center justify-center w-10 h-10 rounded-lg bg-primary-50\">\n                        <x-heroicon-o-collection class=\"w-8 h-8 text-primary-700\" />\n                    </div>\n                </div>\n\n                <div>\n                    <h2 class=\"text-lg font-medium font-display\">\n                        {{ __('Dashboards') }}\n                    </h2>\n                    <p class=\"text-sm text-gray-600\">\n                        {{ __('You can create as many dashboards as you want with all the metrics you need.') }}\n                    </p>\n                </div>\n\n            </article>\n\n        </div>\n\n    </div>\n\n</x-nebula::layouts.shell>\n"
  },
  {
    "path": "routes/web.php",
    "content": "<?php\n\nuse Illuminate\\Support\\Facades\\Route;\nuse Larsklopstra\\Nebula\\Http\\Controllers\\DashboardController;\nuse Larsklopstra\\Nebula\\Http\\Controllers\\PageController;\nuse Larsklopstra\\Nebula\\Http\\Controllers\\ResourceController;\nuse Larsklopstra\\Nebula\\Http\\Controllers\\StartController;\n\n$routePrefix = config('nebula.prefix');\n\nRoute::get(\"/$routePrefix\", StartController::class)->name('start');\n\nRoute::get('/dashboards/{dashboard}', [DashboardController::class, 'index'])->name('dashboards.index');\n\nRoute::name('resources.')->prefix('/resources')->group(function () {\n    Route::get('/{resource}', [ResourceController::class, 'index'])->name('index');\n    Route::get('/{resource}/create', [ResourceController::class, 'create'])->name('create');\n    Route::post('/{resource}/create', [ResourceController::class, 'store'])->name('store');\n\n    Route::get('/{resource}/{item}/edit', [ResourceController::class, 'edit'])->name('edit');\n    Route::patch('/{resource}/{item}/edit', [ResourceController::class, 'update'])->name('update');\n\n    Route::get('/{resource}/{item}', [ResourceController::class, 'show'])->name('show');\n\n    Route::delete('/{resource}/{item}', [ResourceController::class, 'destroy'])->name('destroy');\n});\n\nRoute::get('/page/{page}', [PageController::class, 'index'])->name('pages.index');\n"
  },
  {
    "path": "src/Console/Commands/InstallCommand.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass InstallCommand extends Command\n{\n    protected $signature = 'nebula:install';\n\n    protected $description = 'Install Nebula in your application';\n\n    public function handle()\n    {\n        $this->call('vendor:publish', [\n            '--provider' => \"Larsklopstra\\Nebula\\NebulaServiceProvider\",\n            '--tag' => 'config',\n        ]);\n\n        $this->call('vendor:publish', [\n            '--provider' => \"Larsklopstra\\Nebula\\NebulaServiceProvider\",\n            '--tag' => 'public',\n        ]);\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/MakeDashboardCommand.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Console\\Commands;\n\nuse Illuminate\\Console\\GeneratorCommand;\n\nclass MakeDashboardCommand extends GeneratorCommand\n{\n    protected $name = 'nebula:dashboard';\n\n    protected $description = 'Create a Nebula dashboard';\n\n    protected $type = 'Nebula dashboard';\n\n    protected function getStub()\n    {\n        return __DIR__.'/stubs/dashboard.stub';\n    }\n\n    protected function getDefaultNamespace($rootNamespace)\n    {\n        return $rootNamespace.'\\Nebula\\Dashboards';\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/MakeFieldCommand.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Console\\Commands;\n\nuse Illuminate\\Console\\GeneratorCommand;\n\nclass MakeFieldCommand extends GeneratorCommand\n{\n    protected $name = 'nebula:field';\n\n    protected $description = 'Create a Nebula field';\n\n    protected $type = 'Nebula field';\n\n    protected function getStub()\n    {\n        return __DIR__.'/stubs/field.stub';\n    }\n\n    protected function getDefaultNamespace($rootNamespace)\n    {\n        return $rootNamespace.'\\Nebula\\Fields';\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/MakeFilterCommand.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Console\\Commands;\n\nuse Illuminate\\Console\\GeneratorCommand;\n\nclass MakeFilterCommand extends GeneratorCommand\n{\n    protected $name = 'nebula:filter';\n\n    protected $description = 'Create a Nebula filter';\n\n    protected $type = 'Nebula filter';\n\n    protected function getStub()\n    {\n        return __DIR__.'/stubs/filter.stub';\n    }\n\n    protected function getDefaultNamespace($rootNamespace)\n    {\n        return $rootNamespace.'\\Nebula\\Filters';\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/MakePageCommand.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Console\\Commands;\n\nuse Illuminate\\Console\\GeneratorCommand;\nuse Illuminate\\Support\\Facades\\File;\nuse Illuminate\\Support\\Str;\n\nclass MakePageCommand extends GeneratorCommand\n{\n    protected $name = 'nebula:page';\n\n    protected $description = 'Create a Nebula page';\n\n    protected $type = 'Nebula page';\n\n    public function handle()\n    {\n        parent::handle();\n\n        File::ensureDirectoryExists($this->viewPath('nebula/pages'));\n\n        File::put($this->viewPath(\"nebula/pages/{$this->viewName()}.blade.php\"), '');\n    }\n\n    protected function buildClass($name)\n    {\n        return str_replace(\n            'dummy-view',\n            $this->viewName(),\n            parent::buildClass($name)\n        );\n    }\n\n    protected function getStub()\n    {\n        return __DIR__.'/stubs/page.stub';\n    }\n\n    protected function getDefaultNamespace($rootNamespace)\n    {\n        return $rootNamespace.'\\Nebula\\Pages';\n    }\n\n    protected function viewName()\n    {\n        return (string) Str::of($this->argument('name'))\n            ->replaceLast('Page', '')\n            ->kebab()\n            ->lower();\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/MakeResourceCommand.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Console\\Commands;\n\nuse Illuminate\\Console\\GeneratorCommand;\n\nclass MakeResourceCommand extends GeneratorCommand\n{\n    protected $name = 'nebula:resource';\n\n    protected $description = 'Create a Nebula resource';\n\n    protected $type = 'Nebula resource';\n\n    protected function getStub()\n    {\n        return __DIR__.'/stubs/resource.stub';\n    }\n\n    protected function getDefaultNamespace($rootNamespace)\n    {\n        return $rootNamespace.'\\Nebula\\Resources';\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/MakeValueMetricCommand.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Console\\Commands;\n\nuse Illuminate\\Console\\GeneratorCommand;\n\nclass MakeValueMetricCommand extends GeneratorCommand\n{\n    protected $name = 'nebula:value';\n\n    protected $description = 'Create a Nebula value metric';\n\n    protected $type = 'Nebula value metric';\n\n    protected function getStub()\n    {\n        return __DIR__.'/stubs/value.stub';\n    }\n\n    protected function getDefaultNamespace($rootNamespace)\n    {\n        return $rootNamespace.'\\Nebula\\Metrics';\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/stubs/dashboard.stub",
    "content": "<?php\n\nnamespace DummyNamespace;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaDashboard;\n\nclass DummyClass extends NebulaDashboard\n{\n    public function icon()\n    {\n        return 'trending-up';\n    }\n\n    public function metrics(): array\n    {\n        return [];\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/stubs/field.stub",
    "content": "<?php\n\nnamespace DummyNamespace;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaField;\n\nclass DummyClass extends NebulaField\n{\n    public function getFormComponent()\n    {\n        return 'nebula.forms.field-name';\n    }\n\n    public function getDetailsComponent()\n    {\n        return 'nebula::fields.details.text';\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/stubs/filter.stub",
    "content": "<?php\n\nnamespace DummyNamespace;\n\nuse Illuminate\\Database\\Eloquent\\Builder;\nuse Illuminate\\Http\\Request;\nuse Larsklopstra\\Nebula\\Contracts\\NebulaFilter;\n\nclass DummyClass extends NebulaFilter\n{\n    public function build(Builder $query, Request $request): Builder\n    {\n        return $query->latest();\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/stubs/page.stub",
    "content": "<?php\n\nnamespace DummyNamespace;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaPage;\n\nclass DummyClass extends NebulaPage\n{\n    public function icon()\n    {\n        return 'document';\n    }\n\n    public function render()\n    {\n        return view('nebula.pages.dummy-view');\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/stubs/resource.stub",
    "content": "<?php\n\nnamespace DummyNamespace;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaResource;\n\nclass DummyClass extends NebulaResource\n{\n    protected $searchable = [];\n\n    public function columns(): array\n    {\n        return [];\n    }\n\n    public function fields(): array\n    {\n        return [];\n    }\n}\n"
  },
  {
    "path": "src/Console/Commands/stubs/value.stub",
    "content": "<?php\n\nnamespace DummyNamespace;\n\nuse Larsklopstra\\Nebula\\Metrics\\ValueMetric;\n\nclass DummyClass extends ValueMetric\n{\n    public function calculate()\n    {\n    }\n\n    public function label()\n    {\n    }\n}\n"
  },
  {
    "path": "src/Contracts/NebulaDashboard.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Support\\Stringable;\n\nabstract class NebulaDashboard\n{\n    /**\n     * Specifies which metrics should be displayed.\n     *\n     * @return array\n     */\n    public function metrics(): array\n    {\n        return [];\n    }\n\n    /**\n     * Specifies which icon should be used.\n     *\n     * @return string\n     */\n    public function icon()\n    {\n        return 'tag';\n    }\n\n    /**\n     * Returns the name of the dashboard.\n     *\n     * @return Stringable\n     */\n    public function name()\n    {\n        return Str::of(class_basename($this))\n            ->replaceLast('Dashboard', '')\n            ->kebab()\n            ->lower()\n            ->plural();\n    }\n\n    /**\n     * Returns the dashboard its singular name.\n     *\n     * @return Stringable\n     */\n    public function singularName()\n    {\n        return Str::of($this->name())\n            ->replace('-', '')\n            ->singular();\n    }\n\n    /**\n     * Returns the dashboard its plural name.\n     *\n     * @return string\n     */\n    public function pluralName()\n    {\n        return Str::plural($this->singularName());\n    }\n\n    /**\n     * Render the view for the dashboard.\n     *\n     * @return \\Illuminate\\View\\View|string\n     */\n    public function display()\n    {\n        return app()->call([$this, 'render']);\n    }\n\n    /**\n     * Render the metrics for the dashboard.\n     *\n     * @return \\Illuminate\\View\\View|string\n     */\n    public function displayMetrics()\n    {\n        return view('nebula::dashboards.default-metrics', [\n            'dashboard' => $this,\n        ]);\n    }\n\n    /**\n     * Render the contents of the dashboard.\n     *\n     * @return \\Illuminate\\View\\View|string\n     */\n    public function render()\n    {\n        return view('nebula::dashboards.default', [\n            'dashboard' => $this,\n        ]);\n    }\n\n    /**\n     * Returns the label for the dashboard.\n     *\n     * @return string\n     */\n    public function label()\n    {\n        return __('Last month');\n    }\n}\n"
  },
  {
    "path": "src/Contracts/NebulaField.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Support\\Stringable;\n\nabstract class NebulaField\n{\n    protected string $name = '';\n    protected string $label = '';\n    protected string $value = '';\n    protected bool $required = false;\n    protected array $rules = [];\n\n    /**\n     * Construct the field.\n     *\n     * @param string $label\n     * @param string $name\n     */\n    public function __construct(string $label, string $name = null)\n    {\n        $this->label($label);\n        $this->name($name ??= $label);\n    }\n\n    /**\n     * Make a field.\n     *\n     * @param string $label\n     * @param string $name\n     * @return $this\n     */\n    public static function make(string $label, string $name = null): self\n    {\n        return new static($label, $name);\n    }\n\n    /**\n     * Set the name.\n     *\n     * @param string $name\n     * @return $this\n     */\n    public function name(string $name): self\n    {\n        $this->name = Str::of($name)\n            ->replace(' ', '_')\n            ->lower();\n\n        return $this;\n    }\n\n    /**\n     * Set the label.\n     *\n     * @param mixed $label\n     * @return $this\n     */\n    public function label($label): self\n    {\n        $this->label = Str::of($label)\n            ->ucfirst();\n\n        return $this;\n    }\n\n    /**\n     * Set the value.\n     *\n     * @param mixed $value\n     * @return $this\n     */\n    public function value($value): self\n    {\n        $this->value = $value;\n\n        return $this;\n    }\n\n    /**\n     * Set the required property.\n     *\n     * @param bool $required\n     * @return $this\n     */\n    public function required(bool $required = true): self\n    {\n        $this->required = $required;\n\n        return $this;\n    }\n\n    /**\n     * Set the rules.\n     *\n     * @param mixed $rules\n     * @return $this\n     */\n    public function rules($rules): self\n    {\n        if (! is_array($rules)) {\n            $this->rules = explode('|', $rules);\n\n            return $this;\n        }\n\n        $this->rules = $rules;\n\n        return $this;\n    }\n\n    /**\n     * Get the name.\n     *\n     * @return string\n     */\n    public function getName()\n    {\n        return $this->name;\n    }\n\n    /**\n     * Get the label.\n     *\n     * @return string\n     */\n    public function getLabel()\n    {\n        return $this->label;\n    }\n\n    /**\n     * Get the value.\n     *\n     * @return string\n     */\n    public function getValue()\n    {\n        return $this->value;\n    }\n\n    /**\n     * Get the required property.\n     *\n     * @return bool\n     */\n    public function getRequired(): bool\n    {\n        return $this->required;\n    }\n\n    /**\n     * Get the rules.\n     *\n     * @return array\n     */\n    public function getRules(): array\n    {\n        return $this->rules;\n    }\n\n    /**\n     * Gets the details blade view for this component.\n     *\n     * @return string\n     */\n    public function getDetailsComponent()\n    {\n        return \"nebula::fields.details.{$this->getComponentName()}\";\n    }\n\n    /**\n     * Returns the component name for this component.\n     *\n     * @return Stringable\n     */\n    public function getComponentName()\n    {\n        return Str::of(class_basename($this))\n            ->replaceLast('Field', '')\n            ->kebab()\n            ->lower();\n    }\n\n    /**\n     * Returns the form blade view for this component.\n     *\n     * @return string\n     */\n    public function getFormComponent()\n    {\n        return \"nebula::fields.forms.{$this->getComponentName()}\";\n    }\n\n    /**\n     * Returns the table blade view for this component.\n     *\n     * @return string\n     */\n    public function getTableComponent()\n    {\n        return \"nebula::fields.tables.{$this->getComponentName()}\";\n    }\n}\n"
  },
  {
    "path": "src/Contracts/NebulaFilter.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\nuse Illuminate\\Database\\Eloquent\\Builder;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Support\\Stringable;\n\nabstract class NebulaFilter\n{\n    /**\n     * Return the filter its name.\n     *\n     * @return string\n     */\n    public function name()\n    {\n        return class_basename($this);\n    }\n\n    /**\n     * Returns the filter its label.\n     *\n     * @return Stringable\n     */\n    public function label()\n    {\n        return Str::of(class_basename($this))\n            ->replaceLast('Filter', '')\n            ->kebab()\n            ->replace('-', ' ')\n            ->lower()\n            ->ucfirst();\n    }\n\n    /**\n     * Returns the query builder uses for the filter.\n     *\n     * @param Builder $query\n     * @param Request $request\n     * @return Builder\n     */\n    abstract public function build(Builder $query, Request $request): Builder;\n}\n"
  },
  {
    "path": "src/Contracts/NebulaMetric.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\nuse Closure;\nuse Illuminate\\Support\\Carbon;\n\nabstract class NebulaMetric implements ShouldCache, ShouldRender, ShouldSpanCols\n{\n    /**\n     * Returns the label.\n     *\n     * @return string\n     */\n    public function label()\n    {\n        return '';\n    }\n\n    /**\n     * Returns the column span of a card.\n     *\n     * @return int\n     */\n    public function colSpan(): int\n    {\n        return 4;\n    }\n\n    /**\n     * Calculates the given data.\n     *\n     * @return mixed\n     */\n    abstract public function calculate();\n\n    /**\n     * Specifies for how long a metric should be cached.\n     *\n     * @return Carbon\n     */\n    public function cacheFor()\n    {\n        return now()->addHour();\n    }\n\n    /**\n     * Return the cache.\n     *\n     * @param Closure $callback\n     * @return mixed\n     */\n    abstract public function getFromCache(Closure $callback);\n\n    /**\n     * Return the blade view for a metric.\n     *\n     * @return mixed\n     */\n    abstract public function component();\n}\n"
  },
  {
    "path": "src/Contracts/NebulaPage.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\nuse Closure;\nuse Exception;\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Support\\Stringable;\n\nabstract class NebulaPage\n{\n    public $canSeeCallback;\n\n    /**\n     * Specifies which icon should be used.\n     *\n     * @return string\n     */\n    public function icon()\n    {\n        return 'tag';\n    }\n\n    /**\n     * Returns the name of the page.\n     *\n     * @return Stringable\n     */\n    public function name()\n    {\n        return Str::of(class_basename($this))\n            ->replaceLast('Page', '');\n    }\n\n    /**\n     * Returns the slug of the page.\n     *\n     * @return Stringable\n     */\n    public function slug()\n    {\n        return $this->name()->kebab()->lower();\n    }\n\n    /**\n     * Outputs the page.\n     *\n     * @return mixed\n     */\n    public function display()\n    {\n        if (! method_exists($this, 'render')) {\n            throw new Exception('No `render` method defined on '.get_class($this));\n        }\n\n        return app()->call([$this, 'render']);\n    }\n\n    /**\n     * Determine whether or not the page can be accessed.\n     *\n     * @param  \\Closure  $callback\n     * @return static\n     */\n    public function canSee(Closure $callback)\n    {\n        $this->canSeeCallback = $callback;\n\n        return $this;\n    }\n}\n"
  },
  {
    "path": "src/Contracts/NebulaResource.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\nuse Exception;\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Support\\Stringable;\n\nabstract class NebulaResource\n{\n    protected $with = [];\n\n    protected $searchable = [];\n\n    public function searchable()\n    {\n        return $this->searchable;\n    }\n\n    /**\n     * Specifies the metrics which should be displayed.\n     *\n     * @return array\n     */\n    public function metrics(): array\n    {\n        return [];\n    }\n\n    /**\n     * Specifies the icon which should be used in the menu.\n     *\n     * @return string\n     */\n    public function icon()\n    {\n        return 'tag';\n    }\n\n    /**\n     * Returns the model, if not overriden the class will be resolved based on the resource its classname.\n     *\n     * @return string\n     * @throws Exception\n     */\n    public function model()\n    {\n        $className = Str::replaceLast('Resource', '', class_basename($this));\n\n        $namespaces = [\n            'App',\n            'App\\Models',\n        ];\n\n        foreach ($namespaces as $namespace) {\n            if (class_exists(\"$namespace\\\\$className\")) {\n                return \"$namespace\\\\$className\";\n            }\n        }\n\n        throw new Exception(\"Auto resolved $className model doesn't exist, please add your own via the `model()` method.\");\n    }\n\n    /**\n     * Returns the basename of the resource.\n     *\n     * @return Stringable\n     */\n    public function name()\n    {\n        return Str::of(class_basename($this))\n            ->replaceLast('Resource', '')\n            ->kebab()\n            ->lower()\n            ->plural();\n    }\n\n    /**\n     * Returns the singular name of the resource.\n     *\n     * @return Stringable\n     */\n    public function singularName()\n    {\n        return Str::of($this->name())\n            ->replace('-', ' ')\n            ->singular();\n    }\n\n    /**\n     * Returns the plural name of the resource.\n     *\n     * @return string\n     */\n    public function pluralName()\n    {\n        return Str::plural($this->singularName());\n    }\n\n    /**\n     * Returns the resource its fields.\n     *\n     * @return array\n     */\n    abstract public function fields(): array;\n\n    /**\n     * Returns the fields used for the edit form.\n     *\n     * @return array\n     */\n    public function indexFields(): array\n    {\n        return $this->fields();\n    }\n\n    /**\n     * Returns the fields used for the edit form.\n     *\n     * @return array\n     */\n    public function editFields(): array\n    {\n        return $this->fields();\n    }\n\n    /**\n     * Returns the fields for the create form.\n     *\n     * @return array\n     */\n    public function createFields(): array\n    {\n        return $this->fields();\n    }\n\n    public function filters(): array\n    {\n        return [];\n    }\n\n    /**\n     * Returns the rules for each field.\n     *\n     * @param array $fields\n     * @return array\n     */\n    public function rules(array $fields): array\n    {\n        $rules = [];\n\n        foreach ($fields as $field) {\n            array_push($rules, [\n                $field->getName() => $field->getRules(),\n            ]);\n        }\n\n        return array_merge(...$rules);\n    }\n\n    /**\n     * Resolves the index filters.\n     *\n     * @param string $name\n     * @return mixed\n     * @throws Exception\n     */\n    public function resolveFilter(string $name)\n    {\n        foreach ($this->filters() as $filter) {\n            if ($filter->name() === $name) {\n                return $filter;\n            }\n        }\n\n        throw new Exception(\"Filter $name not found.\");\n    }\n\n    /**\n     * The query for the index view.\n     *\n     * @return mixed\n     * @throws Exception\n     */\n    public function indexQuery()\n    {\n        return $this->model()::query()\n            ->withoutGlobalScopes()\n            ->with($this->with);\n    }\n\n    /**\n     * Specifies the update query.\n     *\n     * @param mixed $model\n     * @param mixed $data\n     * @return void\n     */\n    public function updateQuery($model, $data)\n    {\n        $model->update($data);\n    }\n\n    /**\n     * Specifies the store query.\n     *\n     * @param mixed $model\n     * @param mixed $data\n     * @return void\n     */\n    public function storeQuery($model, $data)\n    {\n        $model::create($data);\n    }\n\n    /**\n     * Specifies the destroy query.\n     *\n     * @param mixed $model\n     * @return void\n     */\n    public function destroyQuery($model)\n    {\n        $model->delete();\n    }\n}\n"
  },
  {
    "path": "src/Contracts/ShouldCache.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\ninterface ShouldCache\n{\n    public function cacheFor();\n}\n"
  },
  {
    "path": "src/Contracts/ShouldRender.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\ninterface ShouldRender\n{\n    public function component();\n}\n"
  },
  {
    "path": "src/Contracts/ShouldSpanCols.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Contracts;\n\ninterface ShouldSpanCols\n{\n    public function colSpan();\n}\n"
  },
  {
    "path": "src/Fields/Boolean.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Fields;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaField;\n\nclass Boolean extends NebulaField\n{\n    protected string $true = 'True';\n    protected string $false = 'False';\n\n    /**\n     * Set the true label.\n     *\n     * @param string $label\n     * @return $this\n     */\n    public function true(string $label): self\n    {\n        $this->true = $label;\n\n        return $this;\n    }\n\n    /**\n     * Set the false label.\n     *\n     * @param string $label\n     * @return $this\n     */\n    public function false(string $label): self\n    {\n        $this->false = $label;\n\n        return $this;\n    }\n\n    public function getTrue()\n    {\n        return $this->true;\n    }\n\n    public function getFalse()\n    {\n        return $this->false;\n    }\n}\n"
  },
  {
    "path": "src/Fields/Color.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Fields;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaField;\n\nclass Color extends NebulaField\n{\n    protected array $colors = [\n        '#e02424',\n        '#d03801',\n        '#9f580a',\n        '#057a55',\n        '#047481',\n        '#1c64f2',\n        '#5850ec',\n        '#7e3af2',\n        '#d61f69',\n    ];\n\n    /**\n     * Sets the colors.\n     *\n     * @param array $colors\n     * @return $this\n     */\n    public function colors(array $colors): self\n    {\n        $this->colors = $colors;\n\n        return $this;\n    }\n\n    /**\n     * Returns the array of colors.\n     *\n     * @return array\n     */\n    public function getColors(): array\n    {\n        return $this->colors;\n    }\n}\n"
  },
  {
    "path": "src/Fields/Concerns/HasHelperText.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Fields\\Concerns;\n\ntrait HasHelperText\n{\n    protected string $helperText = '';\n\n    /**\n     * Sets the helper text property.\n     *\n     * @param string $helperText\n     * @return $this\n     */\n    public function helperText(string $helperText): self\n    {\n        $this->helperText = $helperText;\n\n        return $this;\n    }\n\n    /**\n     * Returns the helper text.\n     *\n     * @return string\n     */\n    public function getHelperText(): string\n    {\n        return $this->helperText;\n    }\n}\n"
  },
  {
    "path": "src/Fields/Concerns/HasPlaceholder.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Fields\\Concerns;\n\ntrait HasPlaceholder\n{\n    protected string $placeholder = '';\n\n    /**\n     * Sets the placeholder property.\n     *\n     * @param string $placeholder\n     * @return $this\n     */\n    public function placeholder(string $placeholder): self\n    {\n        $this->placeholder = $placeholder;\n\n        return $this;\n    }\n\n    /**\n     * Returns the placeholder.\n     *\n     * @return string\n     */\n    public function getPlaceholder(): string\n    {\n        return $this->placeholder;\n    }\n}\n"
  },
  {
    "path": "src/Fields/Date.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Fields;\n\nuse Carbon\\Carbon;\nuse Carbon\\Exceptions\\InvalidFormatException;\nuse Larsklopstra\\Nebula\\Contracts\\NebulaField;\nuse Larsklopstra\\Nebula\\Fields\\Concerns\\HasHelperText;\n\nclass Date extends NebulaField\n{\n    use HasHelperText;\n\n    protected string $format = 'Y-m-d';\n\n    /**\n     * Applies the date format in the front-end.\n     *\n     * @param mixed $date\n     * @return string\n     * @throws InvalidFormatException\n     */\n    public function applyFormat($date)\n    {\n        return Carbon::parse($date)->format($this->format);\n    }\n\n    /**\n     * Applies the date format in the front-end.\n     *\n     * @param string $format\n     * @return $this\n     */\n    public function format(string $format): self\n    {\n        $this->format = $format;\n\n        return $this;\n    }\n}\n"
  },
  {
    "path": "src/Fields/Input.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Fields;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaField;\nuse Larsklopstra\\Nebula\\Fields\\Concerns\\HasHelperText;\nuse Larsklopstra\\Nebula\\Fields\\Concerns\\HasPlaceholder;\n\nclass Input extends NebulaField\n{\n    use HasPlaceholder, HasHelperText;\n\n    protected string $type = 'text';\n\n    /**\n     * Sets the HTML input type.\n     *\n     * @param mixed $type\n     * @return $this\n     */\n    public function type($type): self\n    {\n        $this->type = $type;\n\n        return $this;\n    }\n\n    /**\n     * Returns the HTML input type.\n     *\n     * @return string\n     */\n    public function getType()\n    {\n        return $this->type;\n    }\n}\n"
  },
  {
    "path": "src/Fields/Select.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Fields;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaField;\nuse Larsklopstra\\Nebula\\Fields\\Concerns\\HasHelperText;\n\nclass Select extends NebulaField\n{\n    use HasHelperText;\n\n    protected array $options = [];\n\n    /**\n     * Sets the select fields's options properties.\n     *\n     * @param array $options\n     * @return $this\n     */\n    public function options(array $options): self\n    {\n        $this->options = $options;\n\n        return $this;\n    }\n\n    /**\n     * Return the options.\n     *\n     * @return array\n     */\n    public function getOptions(): array\n    {\n        return $this->options;\n    }\n}\n"
  },
  {
    "path": "src/Fields/Textarea.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Fields;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaField;\nuse Larsklopstra\\Nebula\\Fields\\Concerns\\HasHelperText;\nuse Larsklopstra\\Nebula\\Fields\\Concerns\\HasPlaceholder;\n\nclass Textarea extends NebulaField\n{\n    use HasPlaceholder, HasHelperText;\n}\n"
  },
  {
    "path": "src/Http/Concerns/AuthorizesRequests.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\Concerns;\n\nuse Illuminate\\Support\\Facades\\App;\nuse Illuminate\\Support\\Facades\\Gate;\n\ntrait AuthorizesRequests\n{\n    protected function authorize($ability, $model)\n    {\n        $policy = Gate::getPolicyFor($model);\n\n        if (\n            $policy &&\n            ! App::environment('local') &&\n            in_array($ability, get_class_methods($policy))\n        ) {\n            Gate::authorize($ability, $model);\n        }\n    }\n}\n"
  },
  {
    "path": "src/Http/Controllers/DashboardController.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\Controllers;\n\nuse Illuminate\\Contracts\\Container\\BindingResolutionException;\nuse Illuminate\\View\\View;\nuse Larsklopstra\\Nebula\\Contracts\\NebulaDashboard;\nuse Larsklopstra\\Nebula\\Http\\Concerns\\AuthorizesRequests;\nuse Larsklopstra\\Nebula\\Traits\\Toasts;\n\nclass DashboardController\n{\n    use Toasts, AuthorizesRequests;\n\n    /**\n     * Renders the dashboard view with metrics.\n     *\n     * @param NebulaDashboard $dashboard\n     * @return View\n     * @throws BindingResolutionException\n     */\n    public function index(NebulaDashboard $dashboard): View\n    {\n        return view('nebula::dashboards.index', [\n            'dashboard' => $dashboard,\n        ]);\n    }\n}\n"
  },
  {
    "path": "src/Http/Controllers/PageController.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\Controllers;\n\nuse Illuminate\\Auth\\Access\\AuthorizationException;\nuse Illuminate\\Http\\Request;\nuse Larsklopstra\\Nebula\\Contracts\\NebulaPage;\n\nclass PageController\n{\n    public function index(Request $request, NebulaPage $page)\n    {\n        if ($page->canSeeCallback && !$page->canSeeCallback($request)) {\n            throw new AuthorizationException;\n        }\n\n        return view('nebula::pages.index', [\n            'page' => $page\n        ]);\n    }\n}\n"
  },
  {
    "path": "src/Http/Controllers/ResourceController.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\Controllers;\n\nuse Exception;\nuse Illuminate\\Contracts\\Container\\BindingResolutionException;\nuse Illuminate\\Http\\RedirectResponse;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\View\\View;\nuse Larsklopstra\\Nebula\\Contracts\\NebulaResource;\nuse Larsklopstra\\Nebula\\Http\\Concerns\\AuthorizesRequests;\nuse Larsklopstra\\Nebula\\Traits\\Toasts;\nuse Symfony\\Component\\Routing\\Exception\\RouteNotFoundException;\n\nclass ResourceController\n{\n    use Toasts, AuthorizesRequests;\n\n    /**\n     * Returns the index view with metrics, search filters and resource entries.\n     *\n     * @param Request $request\n     * @param NebulaResource $resource\n     * @return View\n     * @throws Exception\n     * @throws BindingResolutionException\n     */\n    public function index(Request $request, NebulaResource $resource): View\n    {\n        $this->authorize('viewAny', $resource->model());\n\n        $filter = $request->query('filter');\n        $search = $request->query('search');\n\n        $builder = $resource->indexQuery();\n\n        if (! empty($filter)) {\n            $builder = $resource->resolveFilter($filter)->build($builder, $request);\n        }\n\n        if (! empty($search)) {\n            foreach ($resource->searchable() as $column) {\n                $builder->orWhere($column, 'like', \"%$search%\");\n            }\n        }\n\n        return view('nebula::resources.index', [\n            'items' => $builder->paginate(),\n            'resource' => $resource,\n            'activeFilter' => $filter,\n            'activeSearch' => $search,\n        ]);\n    }\n\n    /**\n     * Shows a resource entry.\n     *\n     * @param NebulaResource $resource\n     * @param mixed $item\n     * @return View\n     * @throws BindingResolutionException\n     */\n    public function show(NebulaResource $resource, $item): View\n    {\n        $this->authorize('view', $item);\n\n        return view('nebula::resources.show', [\n            'resource' => $resource,\n            'item' => $item,\n        ]);\n    }\n\n    /**\n     * Shows the edit form of a resource entry.\n     *\n     * @param NebulaResource $resource\n     * @param mixed $item\n     * @return View\n     * @throws BindingResolutionException\n     */\n    public function edit(NebulaResource $resource, $item): View\n    {\n        $this->authorize('update', $item);\n\n        return view('nebula::resources.edit', [\n            'resource' => $resource,\n            'item' => $item,\n        ]);\n    }\n\n    /**\n     * Updates a resource entry.\n     *\n     * @param Request $request\n     * @param NebulaResource $resource\n     * @param mixed $item\n     * @return RedirectResponse\n     * @throws BindingResolutionException\n     */\n    public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n    {\n        $this->authorize('update', $item);\n\n        $validated = $request->validate($resource->rules(\n            $resource->editFields()\n        ));\n\n        $resource->updateQuery($item, $validated);\n\n        $this->toast(__(':Resource updated', [\n            'resource' => $resource->singularName(),\n        ]));\n\n        return redirect()->back();\n    }\n\n    /**\n     * Shows the create form for a resource.\n     *\n     * @param NebulaResource $resource\n     * @return View\n     * @throws BindingResolutionException\n     */\n    public function create(NebulaResource $resource): View\n    {\n        $this->authorize('create', $resource->model());\n\n        return view('nebula::resources.create', [\n            'resource' => $resource,\n        ]);\n    }\n\n    /**\n     * Stores a new resource entry.\n     *\n     * @param Request $request\n     * @param NebulaResource $resource\n     * @return RedirectResponse\n     * @throws Exception\n     * @throws BindingResolutionException\n     */\n    public function store(Request $request, NebulaResource $resource): RedirectResponse\n    {\n        $this->authorize('create', $resource->model());\n\n        $validated = $request->validate($resource->rules(\n            $resource->createFields()\n        ));\n\n        $resource->storeQuery($resource->model(), $validated);\n\n        $this->toast(__(':Resource created', [\n            'resource' => $resource->singularName(),\n        ]));\n\n        return redirect()->back();\n    }\n\n    /**\n     * Deletes a resource entry.\n     *\n     * @param NebulaResource $resource\n     * @param mixed $item\n     * @return RedirectResponse\n     * @throws BindingResolutionException\n     * @throws RouteNotFoundException\n     */\n    public function destroy(NebulaResource $resource, $item): RedirectResponse\n    {\n        $this->authorize('delete', $item);\n\n        $resource->destroyQuery($item);\n\n        $this->toast(__(':Resource deleted', [\n            'resource' => $resource->singularName(),\n        ]));\n\n        return redirect()->route('nebula.resources.index', $resource->name());\n    }\n}\n"
  },
  {
    "path": "src/Http/Controllers/StartController.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\Controllers;\n\nuse Illuminate\\Contracts\\Container\\BindingResolutionException;\nuse Illuminate\\View\\View;\n\nclass StartController\n{\n    /**\n     * Returns the starter view.\n     *\n     * @return View\n     * @throws BindingResolutionException\n     */\n    public function __invoke(): View\n    {\n        return view('nebula::start');\n    }\n}\n"
  },
  {
    "path": "src/Http/Middleware/NebulaEmailAuthStrategy.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Container\\BindingResolutionException;\nuse Illuminate\\Http\\Request;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\nclass NebulaEmailAuthStrategy\n{\n    /**\n     * Checks if the request email contains an allowed email.\n     *\n     * @param Request $request\n     * @param Closure $next\n     * @return mixed\n     * @throws BindingResolutionException\n     * @throws HttpException\n     * @throws NotFoundHttpException\n     */\n    public function handle(Request $request, Closure $next)\n    {\n        if (\n            empty($request->user()->email) ||\n            ! in_array($request->user()->email, config('nebula.allowed_emails'))\n        ) {\n            abort(404);\n        }\n\n        return $next($request);\n    }\n}\n"
  },
  {
    "path": "src/Http/Middleware/NebulaIPAuthStrategy.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Container\\BindingResolutionException;\nuse Illuminate\\Http\\Request;\nuse Symfony\\Component\\HttpFoundation\\Exception\\ConflictingHeadersException;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\n\nclass NebulaIPAuthStrategy\n{\n    /**\n     * Checks if the request ip contains an ip address.\n     *\n     * @param Request $request\n     * @param Closure $next\n     * @return mixed\n     * @throws ConflictingHeadersException\n     * @throws BindingResolutionException\n     * @throws HttpException\n     * @throws NotFoundHttpException\n     */\n    public function handle(Request $request, Closure $next)\n    {\n        if (! in_array($request->ip(), config('nebula.allowed_ips'))) {\n            abort(404);\n        }\n\n        return $next($request);\n    }\n}\n"
  },
  {
    "path": "src/Http/RouteResolvers/DashboardResolver.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\RouteResolvers;\n\nuse Exception;\nuse Illuminate\\Support\\Facades\\Route;\nuse Illuminate\\Support\\Str;\nuse Larsklopstra\\Nebula\\Nebula;\n\nclass DashboardResolver extends Resolver\n{\n    /**\n     * Binds the \"dashboard\" route to the list of routes.\n     *\n     * @return void\n     * @throws BindingResolutionException\n     * @throws HttpException\n     * @throws NotFoundHttpException\n     */\n    public static function bind(): void\n    {\n        Route::bind('dashboard', function ($value) {\n            $dashboards = Nebula::availableDashboards();\n\n            if (empty($dashboards)) {\n                throw new Exception('No dashboards set in the nebula config.');\n            }\n\n            foreach ($dashboards as $dashboard) {\n                $dashboardExists = Str::of($dashboard->name())\n                    ->lower()\n                    ->is($value);\n\n                if ($dashboardExists) {\n                    return $dashboard;\n                }\n            }\n\n            throw new Exception(\"Dashboard $value not found.\");\n        });\n    }\n}\n"
  },
  {
    "path": "src/Http/RouteResolvers/ItemResolver.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\RouteResolvers;\n\nuse Illuminate\\Support\\Facades\\Route;\n\nclass ItemResolver extends Resolver\n{\n    /**\n     * Binds the \"item\" route to the list of routes.\n     *\n     * @return void\n     * @throws NotFoundHttpException\n     */\n    public static function bind(): void\n    {\n        Route::bind('item', function ($value) {\n            $model = request()->resource->model();\n\n            return $model::withoutGlobalScopes()\n                ->where((new $model)->getRouteKeyName(), $value)\n                ->firstOrFail();\n        });\n    }\n}\n"
  },
  {
    "path": "src/Http/RouteResolvers/PageResolver.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\RouteResolvers;\n\nuse Exception;\nuse Illuminate\\Support\\Facades\\Route;\nuse Illuminate\\Support\\Str;\nuse Larsklopstra\\Nebula\\Nebula;\n\nclass PageResolver extends Resolver\n{\n    /**\n     * Binds the page routes to the list of routes.\n     *\n     * @return void\n     * @throws BindingResolutionException\n     * @throws HttpException\n     * @throws NotFoundHttpException\n     */\n    public static function bind(): void\n    {\n        Route::bind('page', function ($value) {\n            $pages = Nebula::availablePages();\n\n            if (empty($pages)) {\n                throw new Exception('No pages set in the nebula config.');\n            }\n\n            foreach ($pages as $page) {\n                $pageExists = Str::of($page->slug())\n                    ->lower()\n                    ->is($value);\n\n                if ($pageExists) {\n                    return $page;\n                }\n            }\n\n            throw new Exception(\"Page {$page} not found.\");\n        });\n    }\n}\n"
  },
  {
    "path": "src/Http/RouteResolvers/Resolver.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\RouteResolvers;\n\nabstract class Resolver\n{\n    abstract public static function bind(): void;\n}\n"
  },
  {
    "path": "src/Http/RouteResolvers/ResourceResolver.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Http\\RouteResolvers;\n\nuse Exception;\nuse Illuminate\\Support\\Facades\\Route;\nuse Illuminate\\Support\\Str;\nuse Larsklopstra\\Nebula\\Nebula;\n\nclass ResourceResolver extends Resolver\n{\n    /**\n     * Binds a \"resource\" route to the list of routes.\n     *\n     * @return void\n     * @throws BindingResolutionException\n     * @throws HttpException\n     * @throws NotFoundHttpException\n     */\n    public static function bind(): void\n    {\n        Route::bind('resource', function ($value) {\n            $resources = Nebula::availableResources();\n\n            if (empty($resources)) {\n                throw new Exception('No resources set in the nebula config.');\n            }\n\n            foreach ($resources as $resource) {\n                $resourceExists = Str::of($resource->name())\n                    ->lower()\n                    ->is($value);\n\n                if ($resourceExists) {\n                    return $resource;\n                }\n            }\n\n            throw new Exception(\"Resource $value not found.\");\n        });\n    }\n}\n"
  },
  {
    "path": "src/Metrics/ValueMetric.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Metrics;\n\nuse Closure;\nuse Exception;\nuse Larsklopstra\\Nebula\\Contracts\\NebulaMetric;\n\nabstract class ValueMetric extends NebulaMetric\n{\n    /**\n     * Returns the prefix.\n     *\n     * @return string\n     */\n    public function prefix()\n    {\n        return '';\n    }\n\n    /**\n     * Returns the suffix.\n     *\n     * @return string\n     */\n    public function suffix()\n    {\n        return '';\n    }\n\n    /**\n     * Returns the difference between now and last month.\n     *\n     * @return int|float\n     */\n    public function calculateDifference()\n    {\n        [$current, $old] = $this->calculate();\n\n        if (empty($old)) {\n            return 100;\n        }\n\n        return ($current - $old) / $old * 100;\n    }\n\n    /**\n     * Build the query of the current and previous metrics and run a closure on them.\n     *\n     * @param  mixed $class\n     * @param  \\Closure $callback\n     * @return \\Closure\n     */\n    protected function query($class, Closure $callback)\n    {\n        $current = $class::query()->withoutGlobalScopes()\n            ->whereBetween('created_at', [now()->subMonth(), now()]);\n\n        $old = $class::query()->withoutGlobalScopes()\n            ->whereBetween('created_at', [now()->subMonths(2), now()->subMonth()]);\n\n        return $callback($current, $old);\n    }\n\n    /**\n     * Returns the avarage based on a given eloquent model `$class` and its column `$column`.\n     *\n     * @param mixed $class\n     * @param mixed $column\n     * @return mixed\n     * @throws Exception\n     */\n    protected function average($class, $column)\n    {\n        return $this->getFromCache(function () use ($class, $column) {\n            return $this->query($class, function ($current, $old) use ($column) {\n                return [\n                    $current->average($column),\n                    $old->average($column),\n                ];\n            });\n        });\n    }\n\n    /**\n     * Returns the count of the given eloquent model `$class`.\n     *\n     * @param mixed $class\n     * @return mixed\n     * @throws Exception\n     */\n    protected function count($class)\n    {\n        return $this->getFromCache(function () use ($class) {\n            return $this->query($class, function ($current, $old) {\n                return [\n                    $current->count(),\n                    $old->count(),\n                ];\n            });\n        });\n    }\n\n    /**\n     * Returns the sum of the given eloquent model `$class` and its column `$column`.\n     *\n     * @param mixed $class\n     * @param mixed $column\n     * @return mixed\n     * @throws Exception\n     */\n    protected function sum($class, $column)\n    {\n        return $this->getFromCache(function () use ($class, $column) {\n            return $this->query($class, function ($current, $old) use ($column) {\n                return [\n                    $current->sum($column),\n                    $old->sum($column),\n                ];\n            });\n        });\n    }\n\n    /**\n     * Returns the max of the given eloquent model `$class` and its column `$column`.\n     *\n     * @param mixed $class\n     * @param mixed $column\n     * @return mixed\n     * @throws Exception\n     */\n    protected function max($class, $column)\n    {\n        return $this->getFromCache(function () use ($class, $column) {\n            return $this->query($class, function ($current, $old) use ($column) {\n                return [\n                    $current->max($column),\n                    $old->max($column),\n                ];\n            });\n        });\n    }\n\n    /**\n     * Returns the min of the given eloquent model `$class` and its column `$column`.\n     *\n     * @param mixed $class\n     * @param mixed $column\n     * @return mixed\n     * @throws Exception\n     */\n    protected function min($class, $column)\n    {\n        return $this->getFromCache(function () use ($class, $column) {\n            return $this->query($class, function ($current, $old) use ($column) {\n                return [\n                    $current->min($column),\n                    $old->min($column),\n                ];\n            });\n        });\n    }\n\n    /**\n     * Check if the cache contains a metric and returns the value, otherwise it'll refetch the data.\n     *\n     * @param Closure $callback\n     * @return mixed\n     * @throws Exception\n     */\n    public function getFromCache(Closure $callback)\n    {\n        $cacheName = class_basename($this);\n\n        return cache()->remember(\"$cacheName.valueMetric\", $this->cacheFor(), $callback);\n    }\n\n    /**\n     * Returns the required blade view to render.\n     *\n     * @return string\n     */\n    public function component()\n    {\n        return 'nebula::metrics.value';\n    }\n}\n"
  },
  {
    "path": "src/Nebula.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula;\n\nuse Larsklopstra\\Nebula\\Contracts\\NebulaDashboard;\nuse Larsklopstra\\Nebula\\Contracts\\NebulaPage;\nuse Larsklopstra\\Nebula\\Contracts\\NebulaResource;\n\nclass Nebula\n{\n    protected static array $resources = [];\n\n    protected static array $dashboards = [];\n\n    protected static array $pages = [];\n\n    /**\n     * Manually register resources.\n     *\n     * @param  array  $resources\n     * @return static\n     */\n    public static function resources(array $resources = [])\n    {\n        static::$resources = array_unique(\n            array_merge(static::$resources, $resources)\n        );\n\n        return new static;\n    }\n\n    /**\n     * Manually register dashboards.\n     *\n     * @param  array  $dashboards\n     * @return static\n     */\n    public static function dashboards(array $dashboards = [])\n    {\n        static::$dashboards = array_unique(\n            array_merge(static::$dashboards, $dashboards)\n        );\n\n        return new static;\n    }\n\n    /**\n     * Manually register pages.\n     *\n     * @param  array  $pages\n     * @return static\n     */\n    public static function pages(array $pages = [])\n    {\n        static::$pages = array_unique(\n            array_merge(static::$pages, $pages)\n        );\n\n        return new static;\n    }\n\n    /**\n     * Get the registered resources.\n     *\n     * @return array\n     */\n    public static function availableResources()\n    {\n        return collect(static::$resources)\n            ->map(fn ($resource) => $resource instanceof NebulaResource ? $resource : new $resource)\n            ->merge(config('nebula.resources'))\n            ->unique()\n            ->toArray();\n    }\n\n    /**\n     * Get the registered dashboards.\n     *\n     * @return array\n     */\n    public static function availableDashboards()\n    {\n        return collect(static::$dashboards)\n            ->map(fn ($dashboard) => $dashboard instanceof NebulaDashboard ? $dashboard : new $dashboard)\n            ->merge(config('nebula.dashboards'))\n            ->unique()\n            ->toArray();\n    }\n\n    /**\n     * Get the registered pages.\n     *\n     * @return array\n     */\n    public static function availablePages()\n    {\n        return collect(static::$pages)\n            ->map(fn ($page) => $page instanceof NebulaPage ? $page : new $page)\n            ->merge(config('nebula.pages'))\n            ->unique()\n            ->toArray();\n    }\n}\n"
  },
  {
    "path": "src/NebulaServiceProvider.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula;\n\nuse Illuminate\\Support\\Facades\\Route;\nuse Illuminate\\Support\\ServiceProvider;\nuse Larsklopstra\\Nebula\\Console\\Commands\\InstallCommand;\nuse Larsklopstra\\Nebula\\Console\\Commands\\MakeDashboardCommand;\nuse Larsklopstra\\Nebula\\Console\\Commands\\MakeFieldCommand;\nuse Larsklopstra\\Nebula\\Console\\Commands\\MakeFilterCommand;\nuse Larsklopstra\\Nebula\\Console\\Commands\\MakePageCommand;\nuse Larsklopstra\\Nebula\\Console\\Commands\\MakeResourceCommand;\nuse Larsklopstra\\Nebula\\Console\\Commands\\MakeValueMetricCommand;\nuse Larsklopstra\\Nebula\\Http\\RouteResolvers\\DashboardResolver;\nuse Larsklopstra\\Nebula\\Http\\RouteResolvers\\ItemResolver;\nuse Larsklopstra\\Nebula\\Http\\RouteResolvers\\PageResolver;\nuse Larsklopstra\\Nebula\\Http\\RouteResolvers\\ResourceResolver;\n\nclass NebulaServiceProvider extends ServiceProvider\n{\n    public function boot(): void\n    {\n        $this->loadJsonTranslationsFrom(__DIR__.'/../resources/lang', 'nebula');\n        $this->loadViewsFrom(__DIR__.'/../resources/views', 'nebula');\n        $this->loadRoutesFrom(__DIR__.'/../routes/web.php');\n        $this->loadViewComponentsAs('nebula', []);\n\n        $this->mapWebRoutes();\n\n        ResourceResolver::bind();\n        ItemResolver::bind();\n        DashboardResolver::bind();\n        PageResolver::bind();\n\n        if ($this->app->runningInConsole()) {\n            $this->publishes([\n                __DIR__.'/../config/nebula.php' => config_path('nebula.php'),\n            ], 'config');\n\n            $this->publishes([\n                __DIR__.'/../public' => public_path('vendor/nebula'),\n            ], 'public');\n\n            $this->commands([\n                InstallCommand::class,\n                MakeResourceCommand::class,\n                MakeValueMetricCommand::class,\n                MakeDashboardCommand::class,\n                MakeFilterCommand::class,\n                MakeFieldCommand::class,\n                MakePageCommand::class,\n            ]);\n        }\n    }\n\n    public function register(): void\n    {\n        $this->mergeConfigFrom(__DIR__.'/../config/nebula.php', 'nebula');\n    }\n\n    public function mapWebRoutes(): void\n    {\n        Route::middleware(['web', config('nebula.auth_strategy')])\n            ->prefix(config('nebula.prefix'))\n            ->domain(config('nebula.domain', null))\n            ->name('nebula.')\n            ->group(__DIR__.'/../routes/web.php');\n    }\n}\n"
  },
  {
    "path": "src/Traits/Toasts.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Traits;\n\nuse Illuminate\\Contracts\\Container\\BindingResolutionException;\n\ntrait Toasts\n{\n    /**\n     * Flash a toast message to the session.\n     *\n     * @param string $message\n     * @return void\n     * @throws BindingResolutionException\n     */\n    public function toast(string $message): void\n    {\n        session()->flash('toast', $message);\n    }\n}\n"
  },
  {
    "path": "tailwind.config.js",
    "content": "const { fontFamily } = require('tailwindcss/defaultTheme')\n\nmodule.exports = {\n  purge: {\n    content: ['./resources/views/**/*.blade.php'],\n    options: {\n      whitelist: [\n        'col-span-1',\n        'col-span-2',\n        'col-span-3',\n        'col-span-4',\n        'col-span-5',\n        'col-span-6',\n        'col-span-7',\n        'col-span-8',\n        'col-span-9',\n        'col-span-10',\n        'col-span-11',\n        'col-span-12',\n      ],\n    },\n  },\n  future: {\n    removeDeprecatedGapUtilities: true,\n    purgeLayersByDefault: true,\n  },\n  // Yes, living on the edge 🤘\n  experimental: {\n    extendedSpacingScale: true,\n    uniformColorPalette: true,\n    defaultLineHeights: true,\n    applyComplexClasses: true,\n  },\n  theme: {\n    extend: {\n      fontFamily: {\n        display: ['DM Sans', ...fontFamily.sans],\n        sans: ['Inter', ...fontFamily.sans],\n        mono: ['DM mono', ...fontFamily.mono],\n      },\n      colors: {\n        primary: {\n          50: '#ebf5ff',\n          100: '#e1effe',\n          200: '#c3ddfd',\n          300: '#a4cafe',\n          400: '#76a9fa',\n          500: '#3f83f8',\n          600: '#1c64f2',\n          700: '#1a56db',\n          800: '#1e429f',\n          900: '#233876',\n        },\n        success: {\n          50: '#f3faf7',\n          100: '#def7ec',\n          200: '#bcf0da',\n          300: '#84e1bc',\n          400: '#31c48d',\n          500: '#0e9f6e',\n          600: '#057a55',\n          700: '#046c4e',\n          800: '#03543f',\n          900: '#014737',\n        },\n        danger: {\n          50: '#fdf2f2',\n          100: '#fde8e8',\n          200: '#fbd5d5',\n          300: '#f8b4b4',\n          400: '#f98080',\n          500: '#f05252',\n          600: '#e02424',\n          700: '#c81e1e',\n          800: '#9b1c1c',\n          900: '#771d1d',\n        },\n      },\n      boxShadow: {\n        default: [\n          '0 1px 1px 0 rgba(0, 0, 0, 0.12)',\n          '0 2px 4px 0 rgba(0, 0, 0, 0.04)',\n          '0 2px 8px 0 rgba(0, 0, 0, 0.02)',\n        ].join(', '),\n        sm: [\n          '0 1px 1px 0 rgba(0, 0, 0, 0.08)',\n          '0 2px 3px 0 rgba(0, 0, 0, 0.02)',\n          '0 3px 6px 0 rgba(0, 0, 0, 0.01)',\n        ].join(', '),\n      },\n    },\n  },\n  plugins: [require('@tailwindcss/custom-forms')],\n}\n"
  },
  {
    "path": "tests/ConsoleCommandTest.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Tests;\n\nuse Larsklopstra\\Nebula\\Tests\\TestCase;\nuse Symfony\\Component\\Console\\Exception\\RuntimeException;\n\nfinal class ConsoleCommandTest extends TestCase\n{\n    /** @test can run php artisan nebula:install */\n    public function can_run_artisan_nebula_install()\n    {\n        $command = $this->artisan('nebula:install');\n\n        $command->assertExitCode(0);\n    }\n\n    /** @test can run php artisan nebula:dashboard */\n    public function can_run_artisan_nebula_dashboard()\n    {\n        $command = $this->artisan('nebula:dashboard', ['name' => 'Users/UserDashboard']);\n\n        $command->assertExitCode(0);\n    }\n\n    /** @test cannot run php artisan nebula:dashboard */\n    public function cannot_run_artisan_nebula_dashboard_without_name()\n    {\n        $this->expectException(RuntimeException::class);\n\n        $this->artisan('nebula:dashboard');\n    }\n\n    /** @test can run php artisan nebula:field */\n    public function can_run_artisan_nebula_field()\n    {\n        $command = $this->artisan('nebula:field', ['name' => 'Users/UserField']);\n\n        $command->assertExitCode(0);\n    }\n\n    /** @test cannot run php artisan nebula:field */\n    public function cannot_run_artisan_nebula_field_without_name()\n    {\n        $this->expectException(RuntimeException::class);\n\n        $this->artisan('nebula:field');\n    }\n\n    /** @test can run php artisan nebula:filter */\n    public function can_run_artisan_nebula_filter()\n    {\n        $command = $this->artisan('nebula:filter', ['name' => 'Users/UserFilter']);\n\n        $command->assertExitCode(0);\n    }\n\n    /** @test cannot run php artisan nebula:filter */\n    public function cannot_run_artisan_nebula_filter_without_name()\n    {\n        $this->expectException(RuntimeException::class);\n\n        $this->artisan('nebula:filter');\n    }\n\n    /** @test can run php artisan nebula:resource */\n    public function can_run_artisan_nebula_resource()\n    {\n        $command = $this->artisan('nebula:resource', ['name' => 'Users/UserResource']);\n\n        $command->assertExitCode(0);\n    }\n\n    /** @test cannot run php artisan nebula:resource */\n    public function cannot_run_artisan_nebula_resource_without_name()\n    {\n        $this->expectException(RuntimeException::class);\n\n        $this->artisan('nebula:resource');\n    }\n\n    /** @test can run php artisan nebula:resource */\n    public function can_run_artisan_nebula_value()\n    {\n        $command = $this->artisan('nebula:value', ['name' => 'Users/UserValue']);\n\n        $command->assertExitCode(0);\n    }\n\n    /** @test cannot run php artisan nebula:value */\n    public function cannot_run_artisan_nebula_value_without_name()\n    {\n        $this->expectException(RuntimeException::class);\n\n        $this->artisan('nebula:value');\n    }\n\n    /** @test can run php artisan nebula:page */\n    public function can_run_artisan_nebula_page()\n    {\n        $command = $this->artisan('nebula:page', ['name' => 'ExamplePage']);\n\n        $command->assertExitCode(0);\n    }\n\n    /** @test cannot run php artisan nebula:page */\n    public function cannot_run_artisan_nebula_page_without_name()\n    {\n        $this->expectException(RuntimeException::class);\n\n        $this->artisan('nebula:page');\n    }\n}\n"
  },
  {
    "path": "tests/RegistrationMethodsTest.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Tests;\n\nclass RegistrationMethodsTest extends TestCase\n{\n    //\n}\n"
  },
  {
    "path": "tests/TestCase.php",
    "content": "<?php\n\nnamespace Larsklopstra\\Nebula\\Tests;\n\nuse Larsklopstra\\Nebula\\NebulaServiceProvider;\nuse Orchestra\\Testbench\\TestCase as BaseTestCase;\n\nclass TestCase extends BaseTestCase\n{\n    protected function getPackageProviders($app)\n    {\n        return [NebulaServiceProvider::class];\n    }\n}\n"
  },
  {
    "path": "webpack.mix.js",
    "content": "const mix = require('laravel-mix')\n\nmix\n  .postCss('resources/css/app.css', 'public/css', require('tailwindcss'))\n  .setPublicPath('public')\n  .copy('public', '../../public/vendor/nebula')\n  .disableNotifications()\n\nif (mix.inProduction()) {\n  mix.version()\n}\n"
  }
]