1
0
forked from poc/pds

designed full screen mode for production quantity chart

This commit is contained in:
dhanabalan
2025-04-21 19:47:13 +05:30
parent 7d3ae71b20
commit 12d3ef3d20
3 changed files with 73 additions and 12 deletions

View File

@@ -46,6 +46,7 @@ class ProductionQuantityResource extends Resource
->required()
// ->nullable()
->reactive()
->columnSpan(1)
// ->default(fn () => optional(ProductionQuantity::latest()->first())->plant_id)
->default(function () {
return optional(ProductionQuantity::latest()->first())->plant_id;
@@ -99,6 +100,7 @@ class ProductionQuantityResource extends Resource
Forms\Components\Select::make('block_name')
->required()
// ->nullable()
->columnSpan(1)
->options(function (callable $get) {
if (!$get('plant_id')) {
return [];
@@ -830,11 +832,10 @@ class ProductionQuantityResource extends Resource
->hidden()
->readOnly(),
])
->columns(2),
->columns(6),
]);
}
public static function table(Table $table): Table
{
return $table
@@ -883,7 +884,8 @@ class ProductionQuantityResource extends Resource
->headerActions([
ImportAction::make()
->importer(ProductionQuantityImporter::class)
->maxRows(100000),
->chunkSize(1000),
// ->maxRows(100000),
ExportAction::make()
->exporter(ProductionQuantityExporter::class),
]);