feat(item): menambahkan format untuk stok di table

This commit is contained in:
Yoga Pangestu 2025-10-04 20:52:43 +07:00
parent 485d81ac63
commit b62b86a6ae
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ public function columns(): array
->data(
fn ($value, $row) => $row->outlets->map(fn ($outlet) => [
'name' => $outlet->name,
'stock' => $outlet->pivot->stock,
'stock' => currency($outlet->pivot->stock, ''),
])->toArray()
)
->outputFormat(fn ($index, $value) => Blade::render('

View File

@ -67,7 +67,7 @@ public function columns(): array
->data(
fn ($value, $row) => $row->outlets->map(fn ($outlet) => [
'name' => $outlet->name,
'stock' => $outlet->pivot->stock,
'stock' => currency($outlet->pivot->stock, ''),
])->toArray()
)
->outputFormat(fn ($index, $value) => Blade::render('

View File

@ -50,7 +50,7 @@ public function columns(): array
->data(
fn ($value, $row) => $row->outlets->map(fn ($outlet) => [
'name' => $outlet->name,
'stock' => $outlet->pivot->stock,
'stock' => currency($outlet->pivot->stock, ''),
])->toArray()
)
->outputFormat(fn ($index, $value) => Blade::render('