From 82fab174dc5a05ce970801faa75edc37721c3495 Mon Sep 17 00:00:00 2001 From: Sampanna Rimal Date: Wed, 4 Sep 2024 12:22:04 +0545 Subject: [PATCH] changes --- .env | 2 +- .../Settings/app/Http/Controllers/.gitkeep | 0 .../Http/Controllers/SettingsController.php | 67 +++ Modules/Settings/app/Http/Requests/.gitkeep | 0 Modules/Settings/app/Models/.gitkeep | 0 Modules/Settings/app/Models/Setting.php | 15 + Modules/Settings/app/Observers/.gitkeep | 0 Modules/Settings/app/Providers/.gitkeep | 0 .../app/Providers/EventServiceProvider.php | 32 ++ .../app/Providers/RouteServiceProvider.php | 49 ++ .../app/Providers/SettingsServiceProvider.php | 120 +++++ Modules/Settings/app/Repositories/.gitkeep | 0 Modules/Settings/composer.json | 30 ++ Modules/Settings/config/.gitkeep | 0 Modules/Settings/config/config.php | 5 + Modules/Settings/database/factories/.gitkeep | 0 Modules/Settings/database/migrations/.gitkeep | 0 Modules/Settings/database/seeders/.gitkeep | 0 .../seeders/SettingsDatabaseSeeder.php | 16 + Modules/Settings/module.json | 11 + Modules/Settings/package.json | 15 + Modules/Settings/resources/assets/.gitkeep | 0 Modules/Settings/resources/assets/js/app.js | 0 .../Settings/resources/assets/sass/app.scss | 0 Modules/Settings/resources/views/.gitkeep | 0 .../Settings/resources/views/index.blade.php | 7 + .../resources/views/layouts/master.blade.php | 29 + Modules/Settings/routes/.gitkeep | 0 Modules/Settings/routes/api.php | 19 + Modules/Settings/routes/web.php | 19 + Modules/Settings/vite.config.js | 26 + Modules/Stocks/app/Http/Controllers/.gitkeep | 0 .../app/Http/Controllers/StocksController.php | 67 +++ Modules/Stocks/app/Http/Requests/.gitkeep | 0 Modules/Stocks/app/Models/.gitkeep | 0 Modules/Stocks/app/Models/PaymentMode.php | 15 + Modules/Stocks/app/Models/Stock.php | 15 + Modules/Stocks/app/Observers/.gitkeep | 0 Modules/Stocks/app/Providers/.gitkeep | 0 .../app/Providers/EventServiceProvider.php | 32 ++ .../app/Providers/RouteServiceProvider.php | 49 ++ .../app/Providers/StocksServiceProvider.php | 120 +++++ Modules/Stocks/app/Repositories/.gitkeep | 0 Modules/Stocks/composer.json | 30 ++ Modules/Stocks/config/.gitkeep | 0 Modules/Stocks/config/config.php | 5 + Modules/Stocks/database/factories/.gitkeep | 0 Modules/Stocks/database/migrations/.gitkeep | 0 Modules/Stocks/database/seeders/.gitkeep | 0 .../database/seeders/StocksDatabaseSeeder.php | 16 + Modules/Stocks/module.json | 11 + Modules/Stocks/package.json | 15 + Modules/Stocks/resources/assets/.gitkeep | 0 Modules/Stocks/resources/assets/js/app.js | 0 Modules/Stocks/resources/assets/sass/app.scss | 0 Modules/Stocks/resources/views/.gitkeep | 0 .../Stocks/resources/views/index.blade.php | 7 + .../resources/views/layouts/master.blade.php | 29 + Modules/Stocks/routes/.gitkeep | 0 Modules/Stocks/routes/api.php | 19 + Modules/Stocks/routes/web.php | 19 + Modules/Stocks/vite.config.js | 26 + app/Helpers/{OMIS.php => BIBStocks.php} | 14 +- ...09_03_161257_create_tbl_settings_table.php | 62 +++ ...1854_create_tbl_fabriccategories_table.php | 41 ++ ...03_161929_create_tbl_masterunits_table.php | 39 ++ ...4_09_03_162203_create_tbl_stocks_table.php | 48 ++ ...3_164741_create_tbl_paymentmodes_table.php | 40 ++ modules_statuses.json | 8 +- .../views/layouts/partials/sidebar.blade.php | 405 ++------------ .../laravel-debugbar/src/LaravelDebugbar.php | 2 +- .../src/Resources/laravel-debugbar.css | 3 + vendor/brick/math/CHANGELOG.md | 18 + vendor/brick/math/composer.json | 13 +- vendor/brick/math/src/BigDecimal.php | 54 +- vendor/brick/math/src/BigInteger.php | 48 +- vendor/brick/math/src/BigNumber.php | 247 +++++---- vendor/brick/math/src/BigRational.php | 46 +- .../src/Exception/NumberFormatException.php | 10 +- vendor/brick/math/src/Internal/Calculator.php | 44 +- .../Internal/Calculator/BcMathCalculator.php | 10 - .../Internal/Calculator/NativeCalculator.php | 27 +- vendor/brick/math/src/RoundingMode.php | 31 +- vendor/composer/autoload_classmap.php | 148 +++++- vendor/composer/autoload_files.php | 2 +- vendor/composer/autoload_psr4.php | 44 ++ vendor/composer/autoload_static.php | 370 ++++++++++++- vendor/composer/installed.json | 503 +++++++++--------- vendor/composer/installed.php | 270 +++++----- vendor/laravel/framework/CHANGELOG.md | 13 +- .../Database/Concerns/BuildsQueries.php | 33 +- .../Database/DetectsLostConnections.php | 1 + .../Illuminate/Database/Eloquent/Builder.php | 13 + .../src/Illuminate/Database/Query/Builder.php | 12 + .../src/Illuminate/Foundation/Application.php | 6 +- .../src/Illuminate/Testing/TestResponse.php | 4 +- vendor/laravel/pint/builds/pint | Bin 13386631 -> 13409296 bytes vendor/laravel/pint/composer.json | 8 +- vendor/laravel/prompts/composer.json | 1 + vendor/laravel/prompts/src/Key.php | 6 + vendor/laravel/prompts/src/TextareaPrompt.php | 8 +- .../Themes/Default/Concerns/DrawsBoxes.php | 42 +- .../Default/Concerns/InteractsWithStrings.php | 46 ++ vendor/nwidart/laravel-modules/CHANGELOG.md | 38 ++ .../nwidart/laravel-modules/config/config.php | 22 +- .../scripts/vite-module-loader.js | 6 +- .../Commands/Actions/ModelPruneCommand.php | 2 +- .../src/Commands/BaseCommand.php | 2 +- .../{ => Database}/MigrateFreshCommand.php | 12 +- .../Database/MigrateRefreshCommand.php | 2 +- .../src/Commands/Database/SeedCommand.php | 1 + .../src/Commands/Make/ActionMakeCommand.php | 77 +++ .../src/Commands/Make/CastMakeCommand.php | 76 +++ .../Commands/Make/ControllerMakeCommand.php | 3 + .../src/Commands/Make/EnumMakeCommand.php | 76 +++ .../Make/EventProviderMakeCommand.php | 76 +++ .../Commands/Make/ExceptionMakeCommand.php | 86 +++ .../src/Commands/Make/GeneratorCommand.php | 19 +- .../src/Commands/Make/HelperMakeCommand.php | 77 +++ .../Commands/Make/InterfaceMakeCommand.php | 76 +++ .../src/Commands/Make/ScopeMakeCommand.php | 81 +++ .../src/Commands/Make/SeedMakeCommand.php | 2 +- .../src/Commands/Make/ServiceMakeCommand.php | 23 +- .../src/Commands/Make/TraitMakeCommand.php | 76 +++ .../src/Commands/stubs/action-invoke.stub | 11 + .../src/Commands/stubs/action.stub | 11 + .../src/Commands/stubs/cast.stub | 29 + .../Commands/stubs/controller.invokable.stub | 18 + .../src/Commands/stubs/enum.stub | 8 + .../src/Commands/stubs/event-provider.stub | 32 ++ .../stubs/exception-render-report.stub | 26 + .../src/Commands/stubs/exception-render.stub | 18 + .../src/Commands/stubs/exception-report.stub | 16 + .../src/Commands/stubs/exception.stub | 10 + .../src/Commands/stubs/helper-invoke.stub | 11 + .../src/Commands/stubs/helper.stub | 11 + .../src/Commands/stubs/interface.stub | 8 + .../src/Commands/stubs/scaffold/provider.stub | 1 + .../src/Commands/stubs/scope.stub | 18 + .../src/Commands/stubs/service-invoke.stub | 11 + .../src/Commands/stubs/service.stub | 2 +- .../src/Commands/stubs/trait.stub | 8 + .../src/Generators/ModuleGenerator.php | 42 +- vendor/nwidart/laravel-modules/src/Module.php | 4 +- .../src/Providers/ConsoleServiceProvider.php | 11 +- .../src/Support/Config/GeneratorPath.php | 16 +- .../src/Traits/PathNamespace.php | 46 ++ vendor/phpunit/phpunit/ChangeLog-10.5.md | 6 + .../src/Logging/JUnit/JunitXmlLogger.php | 2 +- .../phpunit/src/Metadata/Api/DataProvider.php | 43 +- vendor/phpunit/phpunit/src/Runner/Version.php | 2 +- vendor/ramsey/uuid/composer.json | 2 +- .../uuid/src/Math/BrickMathCalculator.php | 6 +- vendor/spatie/backtrace/composer.json | 1 + vendor/spatie/backtrace/src/Backtrace.php | 19 +- .../src/{ => CodeSnippets}/CodeSnippet.php | 20 +- .../FileSnippetProvider.php} | 4 +- ...avelSerializableClosureSnippetProvider.php | 67 +++ .../src/CodeSnippets/NullSnippetProvider.php | 21 + .../src/CodeSnippets/SnippetProvider.php | 12 + vendor/spatie/backtrace/src/Frame.php | 31 +- vendor/spatie/flare-client-php/src/Flare.php | 21 +- vendor/spatie/flare-client-php/src/Report.php | 10 + vendor/spatie/ignition/README.md | 2 + .../ignition/resources/compiled/ignition.css | 2 +- .../ignition/resources/compiled/ignition.js | 10 +- vendor/spatie/ignition/src/Ignition.php | 10 +- vendor/spatie/laravel-html/CHANGELOG.md | 31 ++ .../spatie/laravel-html/src/BaseElement.php | 13 + .../spatie/laravel-html/src/Elements/Form.php | 4 + vendor/spatie/laravel-html/src/Html.php | 18 +- vendor/spatie/laravel-ignition/composer.json | 12 +- .../spatie/laravel-ignition/config/flare.php | 4 +- .../LaravelLivewireRequestContextProvider.php | 43 +- .../src/FlareMiddleware/AddContext.php | 4 +- .../AddExceptionHandledStatus.php | 53 ++ .../src/Views/ViewExceptionMapper.php | 19 +- .../deprecation-contracts/composer.json | 2 +- .../event-dispatcher-contracts/composer.json | 2 +- .../Debug/WrappedListener.php | 2 +- .../Iterator/VcsIgnoredFilterIterator.php | 6 +- .../http-foundation/RedirectResponse.php | 1 + .../Controller/ControllerResolver.php | 2 +- .../DataCollector/DataCollector.php | 16 +- .../DataCollector/RequestDataCollector.php | 2 +- ...RegisterControllerArgumentLocatorsPass.php | 1 + .../http-kernel/Event/ControllerEvent.php | 2 +- vendor/symfony/http-kernel/Kernel.php | 6 +- vendor/symfony/http-kernel/composer.json | 1 + .../Attribute/SubscribedService.php | 4 +- .../ServiceCollectionInterface.php | 26 + .../ServiceMethodsSubscriberTrait.php | 80 +++ .../ServiceSubscriberTrait.php | 16 +- .../Test/ServiceLocatorTestCase.php | 16 +- .../symfony/service-contracts/composer.json | 5 +- vendor/symfony/string/LazyString.php | 2 +- .../Test/TranslatorTest.php | 3 +- .../translation-contracts/composer.json | 2 +- .../translation/Loader/XliffFileLoader.php | 12 +- vendor/symfony/translation/LocaleSwitcher.php | 9 +- .../Resources/bin/translation-status.php | 4 +- .../var-dumper/Caster/ReflectionCaster.php | 2 +- vendor/symfony/yaml/Parser.php | 4 +- 203 files changed, 4255 insertions(+), 1343 deletions(-) create mode 100644 Modules/Settings/app/Http/Controllers/.gitkeep create mode 100644 Modules/Settings/app/Http/Controllers/SettingsController.php create mode 100644 Modules/Settings/app/Http/Requests/.gitkeep create mode 100644 Modules/Settings/app/Models/.gitkeep create mode 100644 Modules/Settings/app/Models/Setting.php create mode 100644 Modules/Settings/app/Observers/.gitkeep create mode 100644 Modules/Settings/app/Providers/.gitkeep create mode 100644 Modules/Settings/app/Providers/EventServiceProvider.php create mode 100644 Modules/Settings/app/Providers/RouteServiceProvider.php create mode 100644 Modules/Settings/app/Providers/SettingsServiceProvider.php create mode 100644 Modules/Settings/app/Repositories/.gitkeep create mode 100644 Modules/Settings/composer.json create mode 100644 Modules/Settings/config/.gitkeep create mode 100644 Modules/Settings/config/config.php create mode 100644 Modules/Settings/database/factories/.gitkeep create mode 100644 Modules/Settings/database/migrations/.gitkeep create mode 100644 Modules/Settings/database/seeders/.gitkeep create mode 100644 Modules/Settings/database/seeders/SettingsDatabaseSeeder.php create mode 100644 Modules/Settings/module.json create mode 100644 Modules/Settings/package.json create mode 100644 Modules/Settings/resources/assets/.gitkeep create mode 100644 Modules/Settings/resources/assets/js/app.js create mode 100644 Modules/Settings/resources/assets/sass/app.scss create mode 100644 Modules/Settings/resources/views/.gitkeep create mode 100644 Modules/Settings/resources/views/index.blade.php create mode 100644 Modules/Settings/resources/views/layouts/master.blade.php create mode 100644 Modules/Settings/routes/.gitkeep create mode 100644 Modules/Settings/routes/api.php create mode 100644 Modules/Settings/routes/web.php create mode 100644 Modules/Settings/vite.config.js create mode 100644 Modules/Stocks/app/Http/Controllers/.gitkeep create mode 100644 Modules/Stocks/app/Http/Controllers/StocksController.php create mode 100644 Modules/Stocks/app/Http/Requests/.gitkeep create mode 100644 Modules/Stocks/app/Models/.gitkeep create mode 100644 Modules/Stocks/app/Models/PaymentMode.php create mode 100644 Modules/Stocks/app/Models/Stock.php create mode 100644 Modules/Stocks/app/Observers/.gitkeep create mode 100644 Modules/Stocks/app/Providers/.gitkeep create mode 100644 Modules/Stocks/app/Providers/EventServiceProvider.php create mode 100644 Modules/Stocks/app/Providers/RouteServiceProvider.php create mode 100644 Modules/Stocks/app/Providers/StocksServiceProvider.php create mode 100644 Modules/Stocks/app/Repositories/.gitkeep create mode 100644 Modules/Stocks/composer.json create mode 100644 Modules/Stocks/config/.gitkeep create mode 100644 Modules/Stocks/config/config.php create mode 100644 Modules/Stocks/database/factories/.gitkeep create mode 100644 Modules/Stocks/database/migrations/.gitkeep create mode 100644 Modules/Stocks/database/seeders/.gitkeep create mode 100644 Modules/Stocks/database/seeders/StocksDatabaseSeeder.php create mode 100644 Modules/Stocks/module.json create mode 100644 Modules/Stocks/package.json create mode 100644 Modules/Stocks/resources/assets/.gitkeep create mode 100644 Modules/Stocks/resources/assets/js/app.js create mode 100644 Modules/Stocks/resources/assets/sass/app.scss create mode 100644 Modules/Stocks/resources/views/.gitkeep create mode 100644 Modules/Stocks/resources/views/index.blade.php create mode 100644 Modules/Stocks/resources/views/layouts/master.blade.php create mode 100644 Modules/Stocks/routes/.gitkeep create mode 100644 Modules/Stocks/routes/api.php create mode 100644 Modules/Stocks/routes/web.php create mode 100644 Modules/Stocks/vite.config.js rename app/Helpers/{OMIS.php => BIBStocks.php} (99%) create mode 100644 database/migrations/2024_09_03_161257_create_tbl_settings_table.php create mode 100644 database/migrations/2024_09_03_161854_create_tbl_fabriccategories_table.php create mode 100644 database/migrations/2024_09_03_161929_create_tbl_masterunits_table.php create mode 100644 database/migrations/2024_09_03_162203_create_tbl_stocks_table.php create mode 100644 database/migrations/2024_09_03_164741_create_tbl_paymentmodes_table.php create mode 100644 vendor/laravel/prompts/src/Themes/Default/Concerns/InteractsWithStrings.php rename vendor/nwidart/laravel-modules/src/Commands/{ => Database}/MigrateFreshCommand.php (87%) create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/ActionMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/CastMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/EnumMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/EventProviderMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/ExceptionMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/HelperMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/InterfaceMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/ScopeMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/Make/TraitMakeCommand.php create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/action-invoke.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/action.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/cast.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/controller.invokable.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/enum.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/event-provider.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/exception-render-report.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/exception-render.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/exception-report.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/exception.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/helper-invoke.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/helper.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/interface.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/scope.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/service-invoke.stub create mode 100644 vendor/nwidart/laravel-modules/src/Commands/stubs/trait.stub create mode 100644 vendor/nwidart/laravel-modules/src/Traits/PathNamespace.php rename vendor/spatie/backtrace/src/{ => CodeSnippets}/CodeSnippet.php (79%) rename vendor/spatie/backtrace/src/{File.php => CodeSnippets/FileSnippetProvider.php} (88%) create mode 100644 vendor/spatie/backtrace/src/CodeSnippets/LaravelSerializableClosureSnippetProvider.php create mode 100644 vendor/spatie/backtrace/src/CodeSnippets/NullSnippetProvider.php create mode 100644 vendor/spatie/backtrace/src/CodeSnippets/SnippetProvider.php create mode 100644 vendor/spatie/laravel-ignition/src/FlareMiddleware/AddExceptionHandledStatus.php create mode 100644 vendor/symfony/service-contracts/ServiceCollectionInterface.php create mode 100644 vendor/symfony/service-contracts/ServiceMethodsSubscriberTrait.php diff --git a/.env b/.env index 098261d..96c6431 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -APP_NAME=OMIS +APP_NAME=StocksNew APP_ENV=local APP_KEY=base64:VoHTBVxg0gnGqmljdwxqtxkcqVUq+9nYYYtHGX4APKU= APP_DEBUG=true diff --git a/Modules/Settings/app/Http/Controllers/.gitkeep b/Modules/Settings/app/Http/Controllers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/app/Http/Controllers/SettingsController.php b/Modules/Settings/app/Http/Controllers/SettingsController.php new file mode 100644 index 0000000..94f239d --- /dev/null +++ b/Modules/Settings/app/Http/Controllers/SettingsController.php @@ -0,0 +1,67 @@ +> + */ + protected $listen = []; + + /** + * Indicates if events should be discovered. + * + * @var bool + */ + protected static $shouldDiscoverEvents = true; + + /** + * Configure the proper event listeners for email verification. + * + * @return void + */ + protected function configureEmailVerification(): void + { + + } +} diff --git a/Modules/Settings/app/Providers/RouteServiceProvider.php b/Modules/Settings/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..14da30e --- /dev/null +++ b/Modules/Settings/app/Providers/RouteServiceProvider.php @@ -0,0 +1,49 @@ +mapApiRoutes(); + + $this->mapWebRoutes(); + } + + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + */ + protected function mapWebRoutes(): void + { + Route::middleware('web')->group(module_path('Settings', '/routes/web.php')); + } + + /** + * Define the "api" routes for the application. + * + * These routes are typically stateless. + */ + protected function mapApiRoutes(): void + { + Route::middleware('api')->prefix('api')->name('api.')->group(module_path('Settings', '/routes/api.php')); + } +} diff --git a/Modules/Settings/app/Providers/SettingsServiceProvider.php b/Modules/Settings/app/Providers/SettingsServiceProvider.php new file mode 100644 index 0000000..2c3dc36 --- /dev/null +++ b/Modules/Settings/app/Providers/SettingsServiceProvider.php @@ -0,0 +1,120 @@ +registerCommands(); + $this->registerCommandSchedules(); + $this->registerTranslations(); + $this->registerConfig(); + $this->registerViews(); + $this->loadMigrationsFrom(module_path($this->moduleName, 'database/migrations')); + } + + /** + * Register the service provider. + */ + public function register(): void + { + $this->app->register(EventServiceProvider::class); + $this->app->register(RouteServiceProvider::class); + } + + /** + * Register commands in the format of Command::class + */ + protected function registerCommands(): void + { + // $this->commands([]); + } + + /** + * Register command Schedules. + */ + protected function registerCommandSchedules(): void + { + // $this->app->booted(function () { + // $schedule = $this->app->make(Schedule::class); + // $schedule->command('inspire')->hourly(); + // }); + } + + /** + * Register translations. + */ + public function registerTranslations(): void + { + $langPath = resource_path('lang/modules/'.$this->moduleNameLower); + + if (is_dir($langPath)) { + $this->loadTranslationsFrom($langPath, $this->moduleNameLower); + $this->loadJsonTranslationsFrom($langPath); + } else { + $this->loadTranslationsFrom(module_path($this->moduleName, 'lang'), $this->moduleNameLower); + $this->loadJsonTranslationsFrom(module_path($this->moduleName, 'lang')); + } + } + + /** + * Register config. + */ + protected function registerConfig(): void + { + $this->publishes([module_path($this->moduleName, 'config/config.php') => config_path($this->moduleNameLower.'.php')], 'config'); + $this->mergeConfigFrom(module_path($this->moduleName, 'config/config.php'), $this->moduleNameLower); + } + + /** + * Register views. + */ + public function registerViews(): void + { + $viewPath = resource_path('views/modules/'.$this->moduleNameLower); + $sourcePath = module_path($this->moduleName, 'resources/views'); + + $this->publishes([$sourcePath => $viewPath], ['views', $this->moduleNameLower.'-module-views']); + + $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower); + + $componentNamespace = str_replace('/', '\\', config('modules.namespace').'\\'.$this->moduleName.'\\'.ltrim(config('modules.paths.generator.component-class.path'), config('modules.paths.app_folder', ''))); + Blade::componentNamespace($componentNamespace, $this->moduleNameLower); + } + + /** + * Get the services provided by the provider. + * + * @return array + */ + public function provides(): array + { + return []; + } + + /** + * @return array + */ + private function getPublishableViewPaths(): array + { + $paths = []; + foreach (config('view.paths') as $path) { + if (is_dir($path.'/modules/'.$this->moduleNameLower)) { + $paths[] = $path.'/modules/'.$this->moduleNameLower; + } + } + + return $paths; + } +} diff --git a/Modules/Settings/app/Repositories/.gitkeep b/Modules/Settings/app/Repositories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/composer.json b/Modules/Settings/composer.json new file mode 100644 index 0000000..fdda8d8 --- /dev/null +++ b/Modules/Settings/composer.json @@ -0,0 +1,30 @@ +{ + "name": "nwidart/settings", + "description": "", + "authors": [ + { + "name": "Nicolas Widart", + "email": "n.widart@gmail.com" + } + ], + "extra": { + "laravel": { + "providers": [], + "aliases": { + + } + } + }, + "autoload": { + "psr-4": { + "Modules\\Settings\\": "app/", + "Modules\\Settings\\Database\\Factories\\": "database/factories/", + "Modules\\Settings\\Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Modules\\Settings\\Tests\\": "tests/" + } + } +} diff --git a/Modules/Settings/config/.gitkeep b/Modules/Settings/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/config/config.php b/Modules/Settings/config/config.php new file mode 100644 index 0000000..e81d946 --- /dev/null +++ b/Modules/Settings/config/config.php @@ -0,0 +1,5 @@ + 'Settings', +]; diff --git a/Modules/Settings/database/factories/.gitkeep b/Modules/Settings/database/factories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/database/migrations/.gitkeep b/Modules/Settings/database/migrations/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/database/seeders/.gitkeep b/Modules/Settings/database/seeders/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/database/seeders/SettingsDatabaseSeeder.php b/Modules/Settings/database/seeders/SettingsDatabaseSeeder.php new file mode 100644 index 0000000..4d6e058 --- /dev/null +++ b/Modules/Settings/database/seeders/SettingsDatabaseSeeder.php @@ -0,0 +1,16 @@ +call([]); + } +} diff --git a/Modules/Settings/module.json b/Modules/Settings/module.json new file mode 100644 index 0000000..c5dbc13 --- /dev/null +++ b/Modules/Settings/module.json @@ -0,0 +1,11 @@ +{ + "name": "Settings", + "alias": "settings", + "description": "", + "keywords": [], + "priority": 0, + "providers": [ + "Modules\\Settings\\Providers\\SettingsServiceProvider" + ], + "files": [] +} diff --git a/Modules/Settings/package.json b/Modules/Settings/package.json new file mode 100644 index 0000000..d6fbfc8 --- /dev/null +++ b/Modules/Settings/package.json @@ -0,0 +1,15 @@ +{ + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "axios": "^1.1.2", + "laravel-vite-plugin": "^0.7.5", + "sass": "^1.69.5", + "postcss": "^8.3.7", + "vite": "^4.0.0" + } +} diff --git a/Modules/Settings/resources/assets/.gitkeep b/Modules/Settings/resources/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/resources/assets/js/app.js b/Modules/Settings/resources/assets/js/app.js new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/resources/assets/sass/app.scss b/Modules/Settings/resources/assets/sass/app.scss new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/resources/views/.gitkeep b/Modules/Settings/resources/views/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/resources/views/index.blade.php b/Modules/Settings/resources/views/index.blade.php new file mode 100644 index 0000000..d794cc8 --- /dev/null +++ b/Modules/Settings/resources/views/index.blade.php @@ -0,0 +1,7 @@ +@extends('settings::layouts.master') + +@section('content') +

Hello World

+ +

Module: {!! config('settings.name') !!}

+@endsection diff --git a/Modules/Settings/resources/views/layouts/master.blade.php b/Modules/Settings/resources/views/layouts/master.blade.php new file mode 100644 index 0000000..cf6bb7e --- /dev/null +++ b/Modules/Settings/resources/views/layouts/master.blade.php @@ -0,0 +1,29 @@ + + + + + + + + + + Settings Module - {{ config('app.name', 'Laravel') }} + + + + + + + + + + {{-- Vite CSS --}} + {{-- {{ module_vite('build-settings', 'resources/assets/sass/app.scss') }} --}} + + + + @yield('content') + + {{-- Vite JS --}} + {{-- {{ module_vite('build-settings', 'resources/assets/js/app.js') }} --}} + diff --git a/Modules/Settings/routes/.gitkeep b/Modules/Settings/routes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Settings/routes/api.php b/Modules/Settings/routes/api.php new file mode 100644 index 0000000..27956d4 --- /dev/null +++ b/Modules/Settings/routes/api.php @@ -0,0 +1,19 @@ +prefix('v1')->group(function () { + Route::apiResource('settings', SettingsController::class)->names('settings'); +}); diff --git a/Modules/Settings/routes/web.php b/Modules/Settings/routes/web.php new file mode 100644 index 0000000..c4e878d --- /dev/null +++ b/Modules/Settings/routes/web.php @@ -0,0 +1,19 @@ +names('settings'); +}); diff --git a/Modules/Settings/vite.config.js b/Modules/Settings/vite.config.js new file mode 100644 index 0000000..6d947b7 --- /dev/null +++ b/Modules/Settings/vite.config.js @@ -0,0 +1,26 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + build: { + outDir: '../../public/build-settings', + emptyOutDir: true, + manifest: true, + }, + plugins: [ + laravel({ + publicDirectory: '../../public', + buildDirectory: 'build-settings', + input: [ + __dirname + '/resources/assets/sass/app.scss', + __dirname + '/resources/assets/js/app.js' + ], + refresh: true, + }), + ], +}); + +//export const paths = [ +// 'Modules/Settings/resources/assets/sass/app.scss', +// 'Modules/Settings/resources/assets/js/app.js', +//]; \ No newline at end of file diff --git a/Modules/Stocks/app/Http/Controllers/.gitkeep b/Modules/Stocks/app/Http/Controllers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/app/Http/Controllers/StocksController.php b/Modules/Stocks/app/Http/Controllers/StocksController.php new file mode 100644 index 0000000..150255e --- /dev/null +++ b/Modules/Stocks/app/Http/Controllers/StocksController.php @@ -0,0 +1,67 @@ +> + */ + protected $listen = []; + + /** + * Indicates if events should be discovered. + * + * @var bool + */ + protected static $shouldDiscoverEvents = true; + + /** + * Configure the proper event listeners for email verification. + * + * @return void + */ + protected function configureEmailVerification(): void + { + + } +} diff --git a/Modules/Stocks/app/Providers/RouteServiceProvider.php b/Modules/Stocks/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000..ac889a0 --- /dev/null +++ b/Modules/Stocks/app/Providers/RouteServiceProvider.php @@ -0,0 +1,49 @@ +mapApiRoutes(); + + $this->mapWebRoutes(); + } + + /** + * Define the "web" routes for the application. + * + * These routes all receive session state, CSRF protection, etc. + */ + protected function mapWebRoutes(): void + { + Route::middleware('web')->group(module_path('Stocks', '/routes/web.php')); + } + + /** + * Define the "api" routes for the application. + * + * These routes are typically stateless. + */ + protected function mapApiRoutes(): void + { + Route::middleware('api')->prefix('api')->name('api.')->group(module_path('Stocks', '/routes/api.php')); + } +} diff --git a/Modules/Stocks/app/Providers/StocksServiceProvider.php b/Modules/Stocks/app/Providers/StocksServiceProvider.php new file mode 100644 index 0000000..78b0f5e --- /dev/null +++ b/Modules/Stocks/app/Providers/StocksServiceProvider.php @@ -0,0 +1,120 @@ +registerCommands(); + $this->registerCommandSchedules(); + $this->registerTranslations(); + $this->registerConfig(); + $this->registerViews(); + $this->loadMigrationsFrom(module_path($this->moduleName, 'database/migrations')); + } + + /** + * Register the service provider. + */ + public function register(): void + { + $this->app->register(EventServiceProvider::class); + $this->app->register(RouteServiceProvider::class); + } + + /** + * Register commands in the format of Command::class + */ + protected function registerCommands(): void + { + // $this->commands([]); + } + + /** + * Register command Schedules. + */ + protected function registerCommandSchedules(): void + { + // $this->app->booted(function () { + // $schedule = $this->app->make(Schedule::class); + // $schedule->command('inspire')->hourly(); + // }); + } + + /** + * Register translations. + */ + public function registerTranslations(): void + { + $langPath = resource_path('lang/modules/'.$this->moduleNameLower); + + if (is_dir($langPath)) { + $this->loadTranslationsFrom($langPath, $this->moduleNameLower); + $this->loadJsonTranslationsFrom($langPath); + } else { + $this->loadTranslationsFrom(module_path($this->moduleName, 'lang'), $this->moduleNameLower); + $this->loadJsonTranslationsFrom(module_path($this->moduleName, 'lang')); + } + } + + /** + * Register config. + */ + protected function registerConfig(): void + { + $this->publishes([module_path($this->moduleName, 'config/config.php') => config_path($this->moduleNameLower.'.php')], 'config'); + $this->mergeConfigFrom(module_path($this->moduleName, 'config/config.php'), $this->moduleNameLower); + } + + /** + * Register views. + */ + public function registerViews(): void + { + $viewPath = resource_path('views/modules/'.$this->moduleNameLower); + $sourcePath = module_path($this->moduleName, 'resources/views'); + + $this->publishes([$sourcePath => $viewPath], ['views', $this->moduleNameLower.'-module-views']); + + $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower); + + $componentNamespace = str_replace('/', '\\', config('modules.namespace').'\\'.$this->moduleName.'\\'.ltrim(config('modules.paths.generator.component-class.path'), config('modules.paths.app_folder', ''))); + Blade::componentNamespace($componentNamespace, $this->moduleNameLower); + } + + /** + * Get the services provided by the provider. + * + * @return array + */ + public function provides(): array + { + return []; + } + + /** + * @return array + */ + private function getPublishableViewPaths(): array + { + $paths = []; + foreach (config('view.paths') as $path) { + if (is_dir($path.'/modules/'.$this->moduleNameLower)) { + $paths[] = $path.'/modules/'.$this->moduleNameLower; + } + } + + return $paths; + } +} diff --git a/Modules/Stocks/app/Repositories/.gitkeep b/Modules/Stocks/app/Repositories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/composer.json b/Modules/Stocks/composer.json new file mode 100644 index 0000000..56f1583 --- /dev/null +++ b/Modules/Stocks/composer.json @@ -0,0 +1,30 @@ +{ + "name": "nwidart/stocks", + "description": "", + "authors": [ + { + "name": "Nicolas Widart", + "email": "n.widart@gmail.com" + } + ], + "extra": { + "laravel": { + "providers": [], + "aliases": { + + } + } + }, + "autoload": { + "psr-4": { + "Modules\\Stocks\\": "app/", + "Modules\\Stocks\\Database\\Factories\\": "database/factories/", + "Modules\\Stocks\\Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Modules\\Stocks\\Tests\\": "tests/" + } + } +} diff --git a/Modules/Stocks/config/.gitkeep b/Modules/Stocks/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/config/config.php b/Modules/Stocks/config/config.php new file mode 100644 index 0000000..673fcd2 --- /dev/null +++ b/Modules/Stocks/config/config.php @@ -0,0 +1,5 @@ + 'Stocks', +]; diff --git a/Modules/Stocks/database/factories/.gitkeep b/Modules/Stocks/database/factories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/database/migrations/.gitkeep b/Modules/Stocks/database/migrations/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/database/seeders/.gitkeep b/Modules/Stocks/database/seeders/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/database/seeders/StocksDatabaseSeeder.php b/Modules/Stocks/database/seeders/StocksDatabaseSeeder.php new file mode 100644 index 0000000..366f235 --- /dev/null +++ b/Modules/Stocks/database/seeders/StocksDatabaseSeeder.php @@ -0,0 +1,16 @@ +call([]); + } +} diff --git a/Modules/Stocks/module.json b/Modules/Stocks/module.json new file mode 100644 index 0000000..0049682 --- /dev/null +++ b/Modules/Stocks/module.json @@ -0,0 +1,11 @@ +{ + "name": "Stocks", + "alias": "stocks", + "description": "", + "keywords": [], + "priority": 0, + "providers": [ + "Modules\\Stocks\\Providers\\StocksServiceProvider" + ], + "files": [] +} diff --git a/Modules/Stocks/package.json b/Modules/Stocks/package.json new file mode 100644 index 0000000..d6fbfc8 --- /dev/null +++ b/Modules/Stocks/package.json @@ -0,0 +1,15 @@ +{ + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build" + }, + "devDependencies": { + "axios": "^1.1.2", + "laravel-vite-plugin": "^0.7.5", + "sass": "^1.69.5", + "postcss": "^8.3.7", + "vite": "^4.0.0" + } +} diff --git a/Modules/Stocks/resources/assets/.gitkeep b/Modules/Stocks/resources/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/resources/assets/js/app.js b/Modules/Stocks/resources/assets/js/app.js new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/resources/assets/sass/app.scss b/Modules/Stocks/resources/assets/sass/app.scss new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/resources/views/.gitkeep b/Modules/Stocks/resources/views/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/resources/views/index.blade.php b/Modules/Stocks/resources/views/index.blade.php new file mode 100644 index 0000000..94157c7 --- /dev/null +++ b/Modules/Stocks/resources/views/index.blade.php @@ -0,0 +1,7 @@ +@extends('stocks::layouts.master') + +@section('content') +

Hello World

+ +

Module: {!! config('stocks.name') !!}

+@endsection diff --git a/Modules/Stocks/resources/views/layouts/master.blade.php b/Modules/Stocks/resources/views/layouts/master.blade.php new file mode 100644 index 0000000..eb26d9a --- /dev/null +++ b/Modules/Stocks/resources/views/layouts/master.blade.php @@ -0,0 +1,29 @@ + + + + + + + + + + Stocks Module - {{ config('app.name', 'Laravel') }} + + + + + + + + + + {{-- Vite CSS --}} + {{-- {{ module_vite('build-stocks', 'resources/assets/sass/app.scss') }} --}} + + + + @yield('content') + + {{-- Vite JS --}} + {{-- {{ module_vite('build-stocks', 'resources/assets/js/app.js') }} --}} + diff --git a/Modules/Stocks/routes/.gitkeep b/Modules/Stocks/routes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Modules/Stocks/routes/api.php b/Modules/Stocks/routes/api.php new file mode 100644 index 0000000..0948629 --- /dev/null +++ b/Modules/Stocks/routes/api.php @@ -0,0 +1,19 @@ +prefix('v1')->group(function () { + Route::apiResource('stocks', StocksController::class)->names('stocks'); +}); diff --git a/Modules/Stocks/routes/web.php b/Modules/Stocks/routes/web.php new file mode 100644 index 0000000..00e17f8 --- /dev/null +++ b/Modules/Stocks/routes/web.php @@ -0,0 +1,19 @@ +names('stocks'); +}); diff --git a/Modules/Stocks/vite.config.js b/Modules/Stocks/vite.config.js new file mode 100644 index 0000000..52cf6f1 --- /dev/null +++ b/Modules/Stocks/vite.config.js @@ -0,0 +1,26 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; + +export default defineConfig({ + build: { + outDir: '../../public/build-stocks', + emptyOutDir: true, + manifest: true, + }, + plugins: [ + laravel({ + publicDirectory: '../../public', + buildDirectory: 'build-stocks', + input: [ + __dirname + '/resources/assets/sass/app.scss', + __dirname + '/resources/assets/js/app.js' + ], + refresh: true, + }), + ], +}); + +//export const paths = [ +// 'Modules/Stocks/resources/assets/sass/app.scss', +// 'Modules/Stocks/resources/assets/js/app.js', +//]; \ No newline at end of file diff --git a/app/Helpers/OMIS.php b/app/Helpers/BIBStocks.php similarity index 99% rename from app/Helpers/OMIS.php rename to app/Helpers/BIBStocks.php index f72a1be..e19da51 100644 --- a/app/Helpers/OMIS.php +++ b/app/Helpers/BIBStocks.php @@ -3,13 +3,13 @@ use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; -class OMIS +class BIBStocks { - // public function __construct() - // { - // $this->initDB(); - // $this->seedPermissions(); - // } + public function __construct() + { + $this->initDB(); + $this->seedPermissions(); + } public static function sendSMSWithCurl($destination, $message) { @@ -74,7 +74,7 @@ class OMIS return "Error: Form (ID/Alias: $formID) not found."; } $csrfToken = csrf_token(); - if (session('success')) { + if (session('success')) { echo ''; diff --git a/database/migrations/2024_09_03_161257_create_tbl_settings_table.php b/database/migrations/2024_09_03_161257_create_tbl_settings_table.php new file mode 100644 index 0000000..972ff9b --- /dev/null +++ b/database/migrations/2024_09_03_161257_create_tbl_settings_table.php @@ -0,0 +1,62 @@ +id('setting_id'); + $table->string('title')->nullable(); + $table->text('description')->nullable(); + $table->string('url1')->nullable(); + $table->string('url2')->nullable(); + $table->string('email')->nullable(); + $table->string('phone')->nullable(); + $table->string('secondary_phone')->nullable(); + $table->text('google_map')->nullable(); + $table->string('fb')->nullable(); + $table->string('insta')->nullable(); + $table->string('twitter')->nullable(); + $table->string('tiktok')->nullable(); + $table->string('primary_logo')->nullable(); + $table->string('secondary_logo')->nullable(); + $table->string('thumb')->nullable(); + $table->string('icon')->nullable(); + $table->string('og_image')->nullable(); + $table->string('no_image', 250)->nullable(); + $table->string('copyright_text', 250)->nullable(); + $table->text('content1')->nullable(); + $table->text('content2')->nullable(); + $table->text('content3')->nullable(); + $table->string('seo_title')->nullable(); + $table->text('seo_description')->nullable(); + $table->text('seo_keywords')->nullable(); + $table->text('og_tags')->nullable(); + $table->integer('display_order')->default(0); + $table->integer('status')->default(0); + $table->timestamps(); + $table->integer('createdby'); + $table->integer('updatedby'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('tbl_settings'); + } +} + diff --git a/database/migrations/2024_09_03_161854_create_tbl_fabriccategories_table.php b/database/migrations/2024_09_03_161854_create_tbl_fabriccategories_table.php new file mode 100644 index 0000000..c649a17 --- /dev/null +++ b/database/migrations/2024_09_03_161854_create_tbl_fabriccategories_table.php @@ -0,0 +1,41 @@ +id('febriccategory_id'); + $table->string('title')->nullable(); + $table->string('alias')->nullable(); + $table->text('description')->nullable(); + $table->string('color')->nullable(); + $table->integer('display_order')->nullable(); + $table->integer('status')->nullable(); + $table->text('remarks')->nullable(); + $table->dateTime('created_at')->nullable(); + $table->integer('createdby')->nullable(); + $table->dateTime('updated_at')->nullable(); + $table->integer('updatedby')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('tbl_fabriccategories'); + } +} \ No newline at end of file diff --git a/database/migrations/2024_09_03_161929_create_tbl_masterunits_table.php b/database/migrations/2024_09_03_161929_create_tbl_masterunits_table.php new file mode 100644 index 0000000..0dd6571 --- /dev/null +++ b/database/migrations/2024_09_03_161929_create_tbl_masterunits_table.php @@ -0,0 +1,39 @@ +id('masterunit_id'); + $table->string('title')->nullable(); + $table->string('alias')->nullable(); + $table->text('description')->nullable(); + $table->integer('display_order')->nullable(); + $table->integer('status')->nullable(); + $table->text('remarks')->nullable(); + $table->dateTime('created_at')->nullable(); + $table->integer('createdby')->nullable(); + $table->dateTime('updated_at')->nullable(); + $table->integer('updatedby')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('tbl_masterunits'); + } +} \ No newline at end of file diff --git a/database/migrations/2024_09_03_162203_create_tbl_stocks_table.php b/database/migrations/2024_09_03_162203_create_tbl_stocks_table.php new file mode 100644 index 0000000..b4596c9 --- /dev/null +++ b/database/migrations/2024_09_03_162203_create_tbl_stocks_table.php @@ -0,0 +1,48 @@ +id('stock_id'); + $table->integer('stocklocations_id')->nullable(); + $table->string('title')->nullable(); + $table->string('alias')->nullable(); + $table->integer('products_id')->nullable(); + $table->string('s')->nullable(); + $table->string('m')->nullable(); + $table->string('l')->nullable(); + $table->string('xl')->nullable(); + $table->string('xxl')->nullable(); + $table->string('xxxl')->nullable(); + $table->string('fs')->nullable(); + $table->integer('display_order')->nullable(); + $table->integer('status')->nullable(); + $table->text('remarks')->nullable(); + $table->dateTime('created_at')->nullable(); + $table->integer('createdby')->nullable(); + $table->dateTime('updated_at')->nullable(); + $table->integer('updatedby')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('tbl_stocks'); + } +} \ No newline at end of file diff --git a/database/migrations/2024_09_03_164741_create_tbl_paymentmodes_table.php b/database/migrations/2024_09_03_164741_create_tbl_paymentmodes_table.php new file mode 100644 index 0000000..ac149f1 --- /dev/null +++ b/database/migrations/2024_09_03_164741_create_tbl_paymentmodes_table.php @@ -0,0 +1,40 @@ +id('paymentmode_id'); + $table->string('title')->nullable(); + $table->string('alias')->nullable(); + $table->text('description')->nullable(); + $table->integer('display_order')->nullable(); + $table->integer('status')->nullable(); + $table->text('remarks')->nullable(); + $table->dateTime('created_at')->nullable(); + $table->integer('createdby')->nullable(); + $table->dateTime('updated_at')->nullable(); + $table->integer('updatedby')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('tbl_paymentmodes'); + } +} \ No newline at end of file diff --git a/modules_statuses.json b/modules_statuses.json index 52a80a8..2b056c3 100644 --- a/modules_statuses.json +++ b/modules_statuses.json @@ -11,5 +11,11 @@ "Payroll": true, "Office": true, "Meeting": true, - "Training": true + "Training": true, + "Customer": true, + "Order": true, + "Product": true, + "Supplier": true, + "Settings": true, + "Stocks": true } \ No newline at end of file diff --git a/resources/views/layouts/partials/sidebar.blade.php b/resources/views/layouts/partials/sidebar.blade.php index 073c9c9..959796f 100644 --- a/resources/views/layouts/partials/sidebar.blade.php +++ b/resources/views/layouts/partials/sidebar.blade.php @@ -34,7 +34,7 @@ Dashboard - @role('admin') + {{-- @role('admin') - @endcan - - - - - - @can('attendance.index') - - @endcan - - @can('leave.index') - - @endcan - - - - - - @can('calendar.index') - - @endcan - - @can(['client.index', 'project.index']) - - - - @endcan - - - - @role('admin') - - - - @endrole - - @can(['asset.index']) + {{-- @can(['asset.index']) - @endcan + @endcan --}} - @can(['payment.index']) - - - - @endcan - - @role('admin') - - - - @endrole + + + + + + + + + + {{-- --}} {{-- --}} + --}} {{-- --}} + @role('admin') -