jeudi 24 octobre 2019

Laravel Collection Search in View

I want to search from a collection with multiple Value in View page

My collection will have

  1. product_id
  2. quantity
  3. color_id
  4. size_id
  5. sold_price

I want to search from this collection with color_id, size_id and product_id in view page so the other values like quantity and sold_price with respective collection will print inside for loop. Is it possible?

@foreach($colors as $color)    
      <tr>
        <td></td>            
          @foreach($sizes as $size) 
           <td>


>  // Here Collection search will be implemented with color_id, size_id
 and product_id and print respective product price and quantity

              </td> 
             @endforeach 
            </tr>
          @endforeach


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire