This commit is contained in:
2024-09-06 17:27:26 +05:00
parent 0939b59ec3
commit 15cf1d0c2a
7 changed files with 199 additions and 195 deletions

View File

@@ -230,9 +230,6 @@ class NovaVisaMasterPaymentOrder extends Resource
), ),
])->maxRows(1)->minRows(1)->rules('required'), ])->maxRows(1)->minRows(1)->rules('required'),
]), ]),
// new Panel(__('Reciver files'), VisaMasterPaymentOrderFileFields::reciverFiles()),
// new Panel(__('Sender files'), VisaMasterPaymentOrderFileFields::senderFiles()),
]; ];
} }
} }

View File

@@ -146,7 +146,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
public function setupAssets(): void public function setupAssets(): void
{ {
Nova::style('additional', resource_path('css/vendor/nova/css/additional.css')); Nova::style('additional', resource_path('css/vendor/nova/css/additional.css'));
Nova::script('additional', resource_path('js/vendor/nova/js/additional.js')); // Nova::script('additional', resource_path('js/vendor/nova/js/additional.js'));
} }
/** /**

View File

@@ -2,7 +2,10 @@
"name": "laravel/laravel", "name": "laravel/laravel",
"type": "project", "type": "project",
"description": "The skeleton application for the Laravel framework.", "description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"], "keywords": [
"laravel",
"framework"
],
"license": "MIT", "license": "MIT",
"require": { "require": {
"php": "^8.1", "php": "^8.1",
@@ -89,6 +92,10 @@
"0": { "0": {
"type": "vcs", "type": "vcs",
"url": "https://github.com/anditsung/nova-locale-switcher" "url": "https://github.com/anditsung/nova-locale-switcher"
},
"1": {
"type": "path",
"url": "./nova-components/NovaWizardField"
} }
}, },
"config": { "config": {

114
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "2a5ad217b457d9d62254bdfbd7797c40", "content-hash": "8876499b32bb24b82f53506f977ad426",
"packages": [ "packages": [
{ {
"name": "adoy/fastcgi-client", "name": "adoy/fastcgi-client",
@@ -393,16 +393,16 @@
}, },
{ {
"name": "dedoc/scramble", "name": "dedoc/scramble",
"version": "v0.11.11", "version": "v0.11.12",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/dedoc/scramble.git", "url": "https://github.com/dedoc/scramble.git",
"reference": "031786322b8ce335e1e0c8c5b7fc07705090616c" "reference": "8eb26726df45f069716f093a5090bb66c75e4113"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/dedoc/scramble/zipball/031786322b8ce335e1e0c8c5b7fc07705090616c", "url": "https://api.github.com/repos/dedoc/scramble/zipball/8eb26726df45f069716f093a5090bb66c75e4113",
"reference": "031786322b8ce335e1e0c8c5b7fc07705090616c", "reference": "8eb26726df45f069716f093a5090bb66c75e4113",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -455,7 +455,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/dedoc/scramble/issues", "issues": "https://github.com/dedoc/scramble/issues",
"source": "https://github.com/dedoc/scramble/tree/v0.11.11" "source": "https://github.com/dedoc/scramble/tree/v0.11.12"
}, },
"funding": [ "funding": [
{ {
@@ -463,7 +463,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-08-16T07:09:24+00:00" "time": "2024-09-04T13:33:28+00:00"
}, },
{ {
"name": "denniseilander/pulse-about-application", "name": "denniseilander/pulse-about-application",
@@ -700,16 +700,16 @@
}, },
{ {
"name": "doctrine/dbal", "name": "doctrine/dbal",
"version": "3.9.0", "version": "3.9.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/dbal.git", "url": "https://github.com/doctrine/dbal.git",
"reference": "d8f68ea6cc00912e5313237130b8c8decf4d28c6" "reference": "d7dc08f98cba352b2bab5d32c5e58f7e745c11a7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/d8f68ea6cc00912e5313237130b8c8decf4d28c6", "url": "https://api.github.com/repos/doctrine/dbal/zipball/d7dc08f98cba352b2bab5d32c5e58f7e745c11a7",
"reference": "d8f68ea6cc00912e5313237130b8c8decf4d28c6", "reference": "d7dc08f98cba352b2bab5d32c5e58f7e745c11a7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -725,7 +725,7 @@
"doctrine/coding-standard": "12.0.0", "doctrine/coding-standard": "12.0.0",
"fig/log-test": "^1", "fig/log-test": "^1",
"jetbrains/phpstorm-stubs": "2023.1", "jetbrains/phpstorm-stubs": "2023.1",
"phpstan/phpstan": "1.11.7", "phpstan/phpstan": "1.12.0",
"phpstan/phpstan-strict-rules": "^1.6", "phpstan/phpstan-strict-rules": "^1.6",
"phpunit/phpunit": "9.6.20", "phpunit/phpunit": "9.6.20",
"psalm/plugin-phpunit": "0.18.4", "psalm/plugin-phpunit": "0.18.4",
@@ -793,7 +793,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/doctrine/dbal/issues", "issues": "https://github.com/doctrine/dbal/issues",
"source": "https://github.com/doctrine/dbal/tree/3.9.0" "source": "https://github.com/doctrine/dbal/tree/3.9.1"
}, },
"funding": [ "funding": [
{ {
@@ -809,7 +809,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-08-15T07:34:42+00:00" "time": "2024-09-01T13:49:23+00:00"
}, },
{ {
"name": "doctrine/deprecations", "name": "doctrine/deprecations",
@@ -2550,16 +2550,16 @@
}, },
{ {
"name": "laravel/pint", "name": "laravel/pint",
"version": "v1.17.2", "version": "v1.17.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/pint.git", "url": "https://github.com/laravel/pint.git",
"reference": "e8a88130a25e3f9d4d5785e6a1afca98268ab110" "reference": "9d77be916e145864f10788bb94531d03e1f7b482"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/e8a88130a25e3f9d4d5785e6a1afca98268ab110", "url": "https://api.github.com/repos/laravel/pint/zipball/9d77be916e145864f10788bb94531d03e1f7b482",
"reference": "e8a88130a25e3f9d4d5785e6a1afca98268ab110", "reference": "9d77be916e145864f10788bb94531d03e1f7b482",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2570,13 +2570,13 @@
"php": "^8.1.0" "php": "^8.1.0"
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^3.61.1", "friendsofphp/php-cs-fixer": "^3.64.0",
"illuminate/view": "^10.48.18", "illuminate/view": "^10.48.20",
"larastan/larastan": "^2.9.8", "larastan/larastan": "^2.9.8",
"laravel-zero/framework": "^10.4.0", "laravel-zero/framework": "^10.4.0",
"mockery/mockery": "^1.6.12", "mockery/mockery": "^1.6.12",
"nunomaduro/termwind": "^1.15.1", "nunomaduro/termwind": "^1.15.1",
"pestphp/pest": "^2.35.0" "pestphp/pest": "^2.35.1"
}, },
"bin": [ "bin": [
"builds/pint" "builds/pint"
@@ -2612,7 +2612,7 @@
"issues": "https://github.com/laravel/pint/issues", "issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint" "source": "https://github.com/laravel/pint"
}, },
"time": "2024-08-06T15:11:54+00:00" "time": "2024-09-03T15:00:28+00:00"
}, },
{ {
"name": "laravel/prompts", "name": "laravel/prompts",
@@ -2674,20 +2674,20 @@
}, },
{ {
"name": "laravel/pulse", "name": "laravel/pulse",
"version": "v1.2.4", "version": "v1.2.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/pulse.git", "url": "https://github.com/laravel/pulse.git",
"reference": "2e7699a602e13bada4c64e3bc7c148ddcaec81bc" "reference": "0c0c91fd05acc537f6324b271709670ffc201e59"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/pulse/zipball/2e7699a602e13bada4c64e3bc7c148ddcaec81bc", "url": "https://api.github.com/repos/laravel/pulse/zipball/0c0c91fd05acc537f6324b271709670ffc201e59",
"reference": "2e7699a602e13bada4c64e3bc7c148ddcaec81bc", "reference": "0c0c91fd05acc537f6324b271709670ffc201e59",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/sql-formatter": "^1.2", "doctrine/sql-formatter": "^1.4.1",
"guzzlehttp/promises": "^1.0|^2.0", "guzzlehttp/promises": "^1.0|^2.0",
"illuminate/auth": "^10.48.4|^11.0.8", "illuminate/auth": "^10.48.4|^11.0.8",
"illuminate/cache": "^10.48.4|^11.0.8", "illuminate/cache": "^10.48.4|^11.0.8",
@@ -2757,7 +2757,7 @@
"issues": "https://github.com/laravel/pulse/issues", "issues": "https://github.com/laravel/pulse/issues",
"source": "https://github.com/laravel/pulse" "source": "https://github.com/laravel/pulse"
}, },
"time": "2024-07-08T15:09:50+00:00" "time": "2024-09-03T09:21:52+00:00"
}, },
{ {
"name": "laravel/sanctum", "name": "laravel/sanctum",
@@ -4209,16 +4209,16 @@
}, },
{ {
"name": "nova-kit/nova-packages-tool", "name": "nova-kit/nova-packages-tool",
"version": "v1.17.0", "version": "v1.17.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nova-kit/nova-packages-tool.git", "url": "https://github.com/nova-kit/nova-packages-tool.git",
"reference": "2f89083ea471f1ecaebd8dc54260c9a2ddd50b4d" "reference": "80afe0f6b0b743a6036add1ab606071d81432e55"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nova-kit/nova-packages-tool/zipball/2f89083ea471f1ecaebd8dc54260c9a2ddd50b4d", "url": "https://api.github.com/repos/nova-kit/nova-packages-tool/zipball/80afe0f6b0b743a6036add1ab606071d81432e55",
"reference": "2f89083ea471f1ecaebd8dc54260c9a2ddd50b4d", "reference": "80afe0f6b0b743a6036add1ab606071d81432e55",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4257,9 +4257,9 @@
], ],
"description": "Tool for Laravel Nova Packages Development", "description": "Tool for Laravel Nova Packages Development",
"support": { "support": {
"source": "https://github.com/nova-kit/nova-packages-tool/tree/v1.17.0" "source": "https://github.com/nova-kit/nova-packages-tool/tree/v1.17.1"
}, },
"time": "2024-08-06T14:29:02+00:00" "time": "2024-09-02T14:50:21+00:00"
}, },
{ {
"name": "nunomaduro/termwind", "name": "nunomaduro/termwind",
@@ -5997,16 +5997,16 @@
}, },
{ {
"name": "spatie/laravel-medialibrary", "name": "spatie/laravel-medialibrary",
"version": "11.9.0", "version": "11.9.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/spatie/laravel-medialibrary.git", "url": "https://github.com/spatie/laravel-medialibrary.git",
"reference": "b103470caad6e7cd8013130e2651e637da94d4ef" "reference": "ff589ea5532a33d84faeb64bfdfd59057b4148b8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/b103470caad6e7cd8013130e2651e637da94d4ef", "url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/ff589ea5532a33d84faeb64bfdfd59057b4148b8",
"reference": "b103470caad6e7cd8013130e2651e637da94d4ef", "reference": "ff589ea5532a33d84faeb64bfdfd59057b4148b8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -6090,7 +6090,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/spatie/laravel-medialibrary/issues", "issues": "https://github.com/spatie/laravel-medialibrary/issues",
"source": "https://github.com/spatie/laravel-medialibrary/tree/11.9.0" "source": "https://github.com/spatie/laravel-medialibrary/tree/11.9.1"
}, },
"funding": [ "funding": [
{ {
@@ -6102,7 +6102,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-08-22T09:20:42+00:00" "time": "2024-09-02T06:32:15+00:00"
}, },
{ {
"name": "spatie/laravel-package-tools", "name": "spatie/laravel-package-tools",
@@ -11021,16 +11021,16 @@
}, },
{ {
"name": "laravel/sail", "name": "laravel/sail",
"version": "v1.31.1", "version": "v1.31.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/sail.git", "url": "https://github.com/laravel/sail.git",
"reference": "3d06dd18cee8059baa7b388af00ba47f6d96bd85" "reference": "0a7e2891a85eba2d448a9ffc6fc5ce367e924bc1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/sail/zipball/3d06dd18cee8059baa7b388af00ba47f6d96bd85", "url": "https://api.github.com/repos/laravel/sail/zipball/0a7e2891a85eba2d448a9ffc6fc5ce367e924bc1",
"reference": "3d06dd18cee8059baa7b388af00ba47f6d96bd85", "reference": "0a7e2891a85eba2d448a9ffc6fc5ce367e924bc1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -11080,7 +11080,7 @@
"issues": "https://github.com/laravel/sail/issues", "issues": "https://github.com/laravel/sail/issues",
"source": "https://github.com/laravel/sail" "source": "https://github.com/laravel/sail"
}, },
"time": "2024-08-02T07:45:47+00:00" "time": "2024-09-03T20:05:33+00:00"
}, },
{ {
"name": "mockery/mockery", "name": "mockery/mockery",
@@ -11528,16 +11528,16 @@
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "1.12.0", "version": "1.12.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "384af967d35b2162f69526c7276acadce534d0e1" "reference": "d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/384af967d35b2162f69526c7276acadce534d0e1", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2",
"reference": "384af967d35b2162f69526c7276acadce534d0e1", "reference": "d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -11582,7 +11582,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-08-27T09:18:05+00:00" "time": "2024-09-03T19:55:22+00:00"
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
@@ -11907,16 +11907,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "10.5.30", "version": "10.5.32",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "b15524febac0153876b4ba9aab3326c2ee94c897" "reference": "f069f46840445d37a4e6f0de8c5879598f9c4327"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b15524febac0153876b4ba9aab3326c2ee94c897", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f069f46840445d37a4e6f0de8c5879598f9c4327",
"reference": "b15524febac0153876b4ba9aab3326c2ee94c897", "reference": "f069f46840445d37a4e6f0de8c5879598f9c4327",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -11930,7 +11930,7 @@
"phar-io/manifest": "^2.0.4", "phar-io/manifest": "^2.0.4",
"phar-io/version": "^3.2.1", "phar-io/version": "^3.2.1",
"php": ">=8.1", "php": ">=8.1",
"phpunit/php-code-coverage": "^10.1.15", "phpunit/php-code-coverage": "^10.1.16",
"phpunit/php-file-iterator": "^4.1.0", "phpunit/php-file-iterator": "^4.1.0",
"phpunit/php-invoker": "^4.0.0", "phpunit/php-invoker": "^4.0.0",
"phpunit/php-text-template": "^3.0.1", "phpunit/php-text-template": "^3.0.1",
@@ -11988,7 +11988,7 @@
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy", "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.30" "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.32"
}, },
"funding": [ "funding": [
{ {
@@ -12004,7 +12004,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-08-13T06:09:37+00:00" "time": "2024-09-04T13:33:39+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,168 +1,168 @@
// window.LaravelNovaWizardStore = { window.LaravelNovaWizardStore = {
// data: { data: {
// steps: 0, steps: 0,
// currentStep: 1, currentStep: 1,
// }, },
// fields: { fields: {
// buttonsContainerElement: {}, buttonsContainerElement: {},
// cancelFormButton: {}, cancelFormButton: {},
// createFormButton: {}, createFormButton: {},
// prevButtonElement: {}, prevButtonElement: {},
// nextButtonElement: {}, nextButtonElement: {},
// }, },
// nextStep() { nextStep() {
// if (this.data.steps > 0 && this.data.currentStep < this.data.steps) { if (this.data.steps > 0 && this.data.currentStep < this.data.steps) {
// document.querySelector(`div[wizard-step="${this.data.currentStep}"]`).style.display = 'none'; document.querySelector(`div[wizard-step="${this.data.currentStep}"]`).style.display = 'none';
// this.data.currentStep++; this.data.currentStep++;
// document.querySelector(`div[wizard-step="${this.data.currentStep}"]`).style.display = 'inherit'; document.querySelector(`div[wizard-step="${this.data.currentStep}"]`).style.display = 'inherit';
// return; return;
// } }
// if (this.data.currentStep === this.data.steps) { if (this.data.currentStep === this.data.steps) {
// this.hideNextButton() this.hideNextButton()
// this.showFormSubmitButton() this.showFormSubmitButton()
// } else { } else {
// this.hideFormSubmitButton() this.hideFormSubmitButton()
// this.showNextButton() this.showNextButton()
// } }
// }, },
// prevStep() { prevStep() {
// if (this.data.currentStep > 1) { if (this.data.currentStep > 1) {
// document.querySelector(`div[wizard-step="${this.data.currentStep}"]`).style.display = 'none'; document.querySelector(`div[wizard-step="${this.data.currentStep}"]`).style.display = 'none';
// this.data.currentStep--; this.data.currentStep--;
// document.querySelector(`div[wizard-step="${this.data.currentStep}"]`).style.display = 'inherit'; document.querySelector(`div[wizard-step="${this.data.currentStep}"]`).style.display = 'inherit';
// } }
// }, },
// hideNovaFormButtons() { hideNovaFormButtons() {
// this.fields.cancelFormButton = document.querySelector('button[dusk="cancel-create-button"]'); this.fields.cancelFormButton = document.querySelector('button[dusk="cancel-create-button"]');
// this.fields.createFormButton = document.querySelector('button[dusk="create-button"]'); this.fields.createFormButton = document.querySelector('button[dusk="create-button"]');
// this.fields.buttonsContainerElement = this.fields.createFormButton.parentNode; this.fields.buttonsContainerElement = this.fields.createFormButton.parentNode;
// this.hideFormSubmitButton(); this.hideFormSubmitButton();
// this.hideFormCancelButton(); this.hideFormCancelButton();
// }, },
// addWizardButtons() { addWizardButtons() {
// this.fields.buttonsContainerElement.insertAdjacentHTML('afterbegin', this.nextButtonTemplate()); this.fields.buttonsContainerElement.insertAdjacentHTML('afterbegin', this.nextButtonTemplate());
// this.fields.buttonsContainerElement.insertAdjacentHTML('afterbegin', this.prevButtonTemplate()); this.fields.buttonsContainerElement.insertAdjacentHTML('afterbegin', this.prevButtonTemplate());
// this.fields.nextButtonElement = document.getElementById('laravel-nova-wizard-next-button'); this.fields.nextButtonElement = document.getElementById('laravel-nova-wizard-next-button');
// this.fields.prevButtonElement = document.getElementById('laravel-nova-wizard-prev-button'); this.fields.prevButtonElement = document.getElementById('laravel-nova-wizard-prev-button');
// this.fields.nextButtonElement.addEventListener('click', () => { this.fields.nextButtonElement.addEventListener('click', () => {
// this.nextStep() this.nextStep()
// }) })
// this.fields.prevButtonElement.addEventListener('click', () => { this.fields.prevButtonElement.addEventListener('click', () => {
// this.prevStep() this.prevStep()
// }) })
// }, },
// nextButtonTemplate() { nextButtonTemplate() {
// return ` return `
// <button type="button" id="laravel-nova-wizard-next-button" class="border text-left appearance-none cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 relative disabled:cursor-not-allowed inline-flex items-center justify-center shadow h-9 px-3 bg-primary-500 border-primary-500 hover:[&amp;:not(:disabled)]:bg-primary-400 hover:[&amp;:not(:disabled)]:border-primary-400 text-white dark:text-gray-900"> <button type="button" id="laravel-nova-wizard-next-button" class="border text-left appearance-none cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 relative disabled:cursor-not-allowed inline-flex items-center justify-center shadow h-9 px-3 bg-primary-500 border-primary-500 hover:[&amp;:not(:disabled)]:bg-primary-400 hover:[&amp;:not(:disabled)]:border-primary-400 text-white dark:text-gray-900">
// <span class="flex items-center gap-1">Next</span> <span class="flex items-center gap-1">Next</span>
// </button> </button>
// `; `;
// }, },
// prevButtonTemplate() { prevButtonTemplate() {
// return ` return `
// <button type="button" id="laravel-nova-wizard-prev-button" class="border text-left appearance-none cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 relative disabled:cursor-not-allowed inline-flex items-center justify-center shadow h-9 px-3 bg-red-500 border-red-500 hover:[&amp;:not(:disabled)]:border-primary-400 text-white dark:text-gray-900"> <button type="button" id="laravel-nova-wizard-prev-button" class="border text-left appearance-none cursor-pointer rounded text-sm font-bold focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 relative disabled:cursor-not-allowed inline-flex items-center justify-center shadow h-9 px-3 bg-red-500 border-red-500 hover:[&amp;:not(:disabled)]:border-primary-400 text-white dark:text-gray-900">
// <span class="flex items-center gap-1">Previus</span> <span class="flex items-center gap-1">Previus</span>
// </button> </button>
// `; `;
// }, },
// hidePrevButton() { hidePrevButton() {
// this.fields.prevButtonElement.style.display = 'none' this.fields.prevButtonElement.style.display = 'none'
// }, },
// showPrevButton() { showPrevButton() {
// this.fields.prevButtonElement.style.display = 'inherit' this.fields.prevButtonElement.style.display = 'inherit'
// }, },
// hideNextButton() { hideNextButton() {
// this.fields.nextButtonElement.style.display = 'none' this.fields.nextButtonElement.style.display = 'none'
// }, },
// showNextButton() { showNextButton() {
// this.fields.nextButtonElement.style.display = 'inherit' this.fields.nextButtonElement.style.display = 'inherit'
// }, },
// showFormSubmitButton() { showFormSubmitButton() {
// this.fields.createFormButton.style.display = 'inherit'; this.fields.createFormButton.style.display = 'inherit';
// }, },
// hideFormSubmitButton() { hideFormSubmitButton() {
// this.fields.createFormButton.style.display = 'none'; this.fields.createFormButton.style.display = 'none';
// }, },
// hideFormCancelButton() { hideFormCancelButton() {
// this.fields.cancelFormButton.style.display = 'none'; this.fields.cancelFormButton.style.display = 'none';
// } }
// }; };
// function setupMultiStepWizard() { function setupMultiStepWizard() {
// let refreshIntervalId = setInterval(() => { let refreshIntervalId = setInterval(() => {
// let formElement = document.querySelector('form'); let formElement = document.querySelector('form');
// if (formElement) { if (formElement) {
// clearInterval(refreshIntervalId) clearInterval(refreshIntervalId)
// // Div container // Div container
// let fieldsContainerElement = formElement.firstChild; let fieldsContainerElement = formElement.firstChild;
// // Div elements // Div elements
// let fieldElements = Array.from(fieldsContainerElement.children); let fieldElements = Array.from(fieldsContainerElement.children);
// // if there a less than 2 divs, no need to wizard it! // if there a less than 2 divs, no need to wizard it!
// if (fieldElements.length < 2) { if (fieldElements.length < 2) {
// return; return;
// } }
// LaravelNovaWizardStore.data.steps = fieldElements.length; LaravelNovaWizardStore.data.steps = fieldElements.length;
// LaravelNovaWizardStore.hideNovaFormButtons() LaravelNovaWizardStore.hideNovaFormButtons()
// LaravelNovaWizardStore.addWizardButtons() LaravelNovaWizardStore.addWizardButtons()
// let loopCount = 0; let loopCount = 0;
// fieldElements.forEach(item => { fieldElements.forEach(item => {
// loopCount++; loopCount++;
// item.setAttribute('wizard-step', loopCount) item.setAttribute('wizard-step', loopCount)
// if (loopCount === 1) { if (loopCount === 1) {
// return; return;
// } }
// item.style.display = 'none' item.style.display = 'none'
// }) })
// } }
// }, 300); }, 300);
// } }
// Nova.$on('liftedOff', () => { Nova.$on('liftedOff', () => {
// if (Nova.$router.page.component === 'Nova.Create') { if (Nova.$router.page.component === 'Nova.Create') {
// setupMultiStepWizard() setupMultiStepWizard()
// } }
// }) })
// Nova.$router.on('success', (event) => { Nova.$router.on('success', (event) => {
// if (event.detail.page.component === 'Nova.Create') { if (event.detail.page.component === 'Nova.Create') {
// setupMultiStepWizard() setupMultiStepWizard()
// } }
// }) })
// document.addEventListener('inertia:navigate', () => { document.addEventListener('inertia:navigate', () => {
// console.log('page is updating') console.log('page is updating')
// }) })
// when app is booting // when app is booting
// Nova.booting((app, store) => {}) Nova.booting((app, store) => {})