diff --git a/app/Filament/Resources/ProductionQuantityResource/Pages/CreateProductionQuantity.php b/app/Filament/Resources/ProductionQuantityResource/Pages/CreateProductionQuantity.php index f0cadb6f6..0cfe0ff3c 100644 --- a/app/Filament/Resources/ProductionQuantityResource/Pages/CreateProductionQuantity.php +++ b/app/Filament/Resources/ProductionQuantityResource/Pages/CreateProductionQuantity.php @@ -11,6 +11,7 @@ use Filament\Facades\Filament; use Filament\Notifications\Notification; use Filament\Resources\Pages\CreateRecord; use Livewire\Livewire; +use Log; use Route; class CreateProductionQuantity extends CreateRecord @@ -30,10 +31,11 @@ class CreateProductionQuantity extends CreateRecord public function boot(): void { + // dd('Current Route: ' . Route::currentRouteName()); Filament::registerRenderHook( 'panels::body.start', function () { - if (str_contains(Route::currentRouteName(), 'filament.admin.resources.production-quantities')) { + if (str_contains(Route::currentRouteName(), 'filament.admin.resources.production-quantities.create')) { echo << /* Hide sidebar and topbar */