Added chart on footer
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Filament\Resources\ProductionQuantityResource\Pages;
|
||||
|
||||
use App\Filament\Resources\ProductionQuantityResource;
|
||||
use App\Filament\Widgets\ItemOverview;
|
||||
use App\Models\ProductionQuantity;
|
||||
use App\Models\Shift;
|
||||
use Filament\Actions;
|
||||
@@ -15,6 +16,13 @@ class CreateProductionQuantity extends CreateRecord
|
||||
{
|
||||
protected static string $resource = ProductionQuantityResource::class;
|
||||
|
||||
protected function getFooterWidgets(): array
|
||||
{
|
||||
return [
|
||||
ItemOverview::make(),
|
||||
];
|
||||
}
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
{
|
||||
return $this->getResource()::getUrl('create'); // Stay on Create Page after saving
|
||||
|
||||
Reference in New Issue
Block a user