1
0
forked from poc/pds

Added default value as '-' to material_type on view report

This commit is contained in:
dhanabalan
2026-01-22 11:05:54 +05:30
parent 755f4e5962
commit 922e76448c

View File

@@ -579,17 +579,18 @@ class StickerMasterResource extends Resource
->alignCenter(),
Tables\Columns\TextColumn::make('material_type')
->label('Material Type')
->default('-')
->alignCenter()
->formatStateUsing(function ($state) {
if (is_null($state) || $state === '') {
return '';
if (is_null($state) || $state == '') {
return '-';
}
return match ($state) {
1 => 'Individual',
2 => 'Bundle',
3 => 'Quantity',
default => '',
default => '-',
};
}),
Tables\Columns\TextColumn::make('created_at')