feat: enhance search functionality in RawMaterialService for improved filtering of raw materials
This commit is contained in:
parent
dc594c9daa
commit
1c7fc17531
@ -37,7 +37,10 @@ public function paginateForIndex(array $tableQuery, string $isActive, string $st
|
||||
'pendingOwnerVerificationRequest.submittedBy.profile',
|
||||
'prices' => fn ($query) => $query
|
||||
->orderBy('created_at')
|
||||
->with('media'),
|
||||
->with('media')
|
||||
->when($tableQuery['search'] !== '', function ($query) use ($tableQuery): void {
|
||||
$query->where('variant', 'like', "%{$tableQuery['search']}%");
|
||||
}),
|
||||
])
|
||||
->when($tableQuery['search'] !== '', function (Builder $query) use ($tableQuery): void {
|
||||
$search = $tableQuery['search'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user