Merge pull request 'Added default value as '-' to material_type on view report' (#230) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s

Reviewed-on: #230
This commit was merged in pull request #230.
This commit is contained in:
2026-01-22 05:38:40 +00:00

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')