WIP on loan order

This commit is contained in:
nurmuhammet committed 2023-11-26 17:36:17 +05:00
1 parent 392136dc9b
commit 11ad96e5d8
13 files changed
+306 -293

No files matched your search

+10 -4
View File
@@ -21,7 +21,6 @@
use Laravel\Nova\Menu\MenuSection;
use Laravel\Nova\Nova;
use Laravel\Nova\NovaApplicationServiceProvider;
use Wdelfuego\NovaWizard\NovaWizard;
class NovaServiceProvider extends NovaApplicationServiceProvider
{
@@ -38,6 +37,7 @@ public function boot(): void
$this->setupNavigation();
$this->setupUserNavigation();
$this->setupUserSettings();
$this->setupAssets();
}
/**
@@ -84,7 +84,6 @@ public function tools(): array
LocaleSwitcher::make()
->setLocales(config('app.locales'))
->onSwitchLocale(NovaRepo::localeSwitcherSave()),
// new NovaWizard('add-user'),
];
}
@@ -107,7 +106,6 @@ public function setupNavigation(): void
MenuSection::make(__('Orders'), [
MenuItem::resource(LoanOrder::class),
// MenuItem::link('Add a user', NovaWizard::pathToWizard('add-user'))
])->icon('collection')->collapsable(),
MenuSection::make(__('System'), [
@@ -117,7 +115,7 @@ public function setupNavigation(): void
MenuItem::resource(Permission::class),
])->collapsable(),
MenuGroup::make(__('Loans'), [
MenuGroup::make(__('Loan'), [
MenuItem::resource(LoanType::class),
])->collapsable(),
@@ -149,4 +147,12 @@ public function setupUserSettings(): void
{
Nova::serving(fn (ServingNova $event) => NovaRepo::serving($event));
}
/**
* Setup Assets
*/
public function setupAssets(): void
{
Nova::style('additional', resource_path('css/vendor/nova/css/additional.css'));
}
}