$price = Prices::where('product_id', $product->id) ->latest('id') // default it is based on 'created_at' ->first();
$data = Model::query()->latest()->get();