
@foreach($product as $data)

    <div class="col-12 col-md-6 col-lg-3">
    
      <div class="card card2">
        @foreach($getstock as $sdata)
            @if($sdata->id == $data->pro_id)
            <a target="_blank" href="productdescription/{{$data->pro_id}}">
            @foreach($newpro as $newdata)
            @if($data->id == $newdata->id)
            <span class="notify-badge">New</span>
            @break;
            @endif
            @endforeach
            <img class="card-img-top" style="height:250px" src="{{ env('BACKEND_URL') . "storage/$sdata->image"}}" alt="Card image cap">
            </a>
            
            <hr>
            @break;
            @endif
        @endforeach
        <div class="card-body1" style="text-align: center;">
        <h6 class="card-title1" style="text-align: center;"><a target="_blank" href="productdescription/{{$data->pro_id}}">{{ $data->pro_name}}</a></h6>
          <p class="card-text">
         <b>Product ID - {{ $data->id}}</b> <br>
          Selling Price -  Rs. {{ $data->sell_price}} <br>
          
          Stock - 
            @foreach($getstock as $sdata)
                @if($sdata->id == $data->pro_id)
                {{ $sdata->stock }}
                @break;
                @endif
            @endforeach<br>
            @if((Auth::user()->type!=="User"))
           <a style="color:green;"> Dropshiping Price - Rs. {{$data->cost}} </a>
           @endif
          </p>
          </p>
        </div>
      </div>
    </div>

@endforeach