designed full screen mode for production quantity chart
This commit is contained in:
@@ -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),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user